Show / Hide Table of Contents

Aes128CredentialWithSecrets Constructor

Aes128CredentialWithSecrets(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>, string, bool)

Create an AES-128 credential to be stored in the YubiHSM Auth application.

C#
public Aes128CredentialWithSecrets(ReadOnlyMemory<byte> credentialPassword, ReadOnlyMemory<byte> encryptionKey, ReadOnlyMemory<byte> macKey, string label, bool touchRequired)

Parameters

Type Name Description
ReadOnlyMemory<byte> credentialPassword

The credential password is required when performing operations that access the key(s), such as calculating session keys. Its length must be equal to RequiredCredentialPasswordLength.

ReadOnlyMemory<byte> encryptionKey

Sets EncryptionKey.

ReadOnlyMemory<byte> macKey

Sets MacKey.

string label

Sets Label.

bool touchRequired

Sets TouchRequired.

Exceptions

Type Condition
ArgumentException

Thrown when an AES-128 key does not have the required size (see RequiredKeySize).

In this article
Back to top Generated by DocFX