Aes128CredentialWithSecrets Class
Namespace: Yubico.YubiKey.YubiHsmAuth Assembly: Yubico.YubiKey.dllThis class is used when adding a new credential with AES-128 keys to the YubiHSM Auth application.
C#
public class Aes128CredentialWithSecrets : CredentialWithSecrets
Constructors
Name | Description |
---|---|
Aes128CredentialWithSecrets(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, String, Boolean) | Create an AES-128 credential to be stored in the YubiHSM Auth application. |
Fields
Name | Description |
---|---|
RequiredKeySize | An AES-128 key must be exactly 16 bytes. This applies to both the Encryption and MAC key. |
Properties
Name | Description |
---|---|
EncryptionKey | The AES-128 key used for encryption. Its length must be equal to RequiredKeySize. |
MacKey | The AES-128 key used for message authentication (MAC). Its length must be equal to RequiredKeySize. |