2using System.Collections.Generic;
47 var data =
new List<byte>
54 return data.ToArray();
62 byte keyLength = data[1];
70 var sb =
new StringBuilder();
71 sb.AppendLine($
" Key Type: {KeyType}");
72 sb.AppendLine($
"Key Length: {KeyData.Length} bytes");
73 sb.AppendLine($
" Key Data: {BitConverter.ToString(KeyData)}");
Contains standard Security Control Block data that can be used when building messages.
Base class representing a payload of a PD command message.
override ReadOnlySpan< byte > SecurityControlBlock()
EncryptionKeyConfiguration(KeyType keyType, byte[] keyData)
Initializes a new instance of the EncryptionKeyConfiguration class.
override byte[] BuildData()
static EncryptionKeyConfiguration ParseData(ReadOnlySpan< byte > data)
Parses the message payload bytes.
KeyType KeyType
Gets the type of the key.
override CommandType CommandType
byte[] KeyData
Gets 16 bytes of key data.
override string ToString()