StaticKeys Constructor
StaticKeys(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>)
Constructs an instance given the supplied keys. This class will consider these keys to be the key set with the Key Version Number of
- If the key version number should be something else, set the KeyVersionNumber property after calling the constructor.
C#
public StaticKeys(ReadOnlyMemory<byte> channelMacKey, ReadOnlyMemory<byte> channelEncryptionKey, ReadOnlyMemory<byte> dataEncryptionKey)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | channelMacKey | 16-byte AES128 shared secret key |
System.ReadOnlyMemory<System.Byte> | channelEncryptionKey | 16-byte AES128 shared secret key |
System.ReadOnlyMemory<System.Byte> | dataEncryptionKey | 16-byte AES128 shared secret key |
Remarks
This class will copy the input key data, not just a reference. You
can overwrite the input buffers as soon as the StaticKeys
object is created.
StaticKeys()
Constructs an instance using the well-known default values; using these provides no security. This class will consider these keys to be the key set with the Key Version Number of 255 (0xFF).
C#
public StaticKeys()