Show / Hide Table of Contents

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 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.

16-byte AES128 shared secret key 16-byte AES128 shared secret key 16-byte AES128 shared secret key
C#
public StaticKeys(ReadOnlyMemory<byte> channelMacKey, ReadOnlyMemory<byte> channelEncryptionKey, ReadOnlyMemory<byte> dataEncryptionKey)

Parameters

Type Name Description
ReadOnlyMemory<byte> channelMacKey
ReadOnlyMemory<byte> channelEncryptionKey
ReadOnlyMemory<byte> dataEncryptionKey

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()
In this article
Back to top Generated by DocFX