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

  1. 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
ReadOnlyMemory<byte> channelMacKey

16-byte AES128 shared secret key

ReadOnlyMemory<byte> channelEncryptionKey

16-byte AES128 shared secret key

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