Aes128CredentialWithSecrets Constructor
Aes128CredentialWithSecrets(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, String, Boolean)
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 |
---|---|---|
System.ReadOnlyMemory<System.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. |
System.ReadOnlyMemory<System.Byte> | encryptionKey | Sets EncryptionKey. |
System.ReadOnlyMemory<System.Byte> | macKey | Sets MacKey. |
System.String | label | Sets Label. |
System.Boolean | touchRequired | Sets TouchRequired. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an AES-128 key does not have the required size (see RequiredKeySize). |