StaticKeys Class
Namespace: Yubico.YubiKey.Scp Assembly: Yubico.YubiKey.dllRepresents a triple of SCP03 static keys shared with the device.
public class StaticKeys : Object, IDisposable
Implements
Remarks
See also the User's Manual entry on SCP03.
These are the three secret keys that only the device and remote user know. Clients must supply these to communicate securely with a remote device.
Systems often derive and assign these keys using a diversification function keyed with a 'master key' and run on the 'DivData' of each device.
Constructors
Name | Description |
---|---|
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). |
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
|
Properties
Name | Description |
---|---|
ChannelEncryptionKey | AES128 shared secret key used to calculate the Session-ENC key. Also called the 'DAK' or 'Key-ENC' in some specifications. |
ChannelMacKey | AES128 shared secret key used to calculate the Session-MAC key. Also called the 'DMK' or 'Key-MAC' in some specifications. |
DataEncryptionKey | AES128 shared secret key used to wrap secrets. Also called the 'DEK' in some specifications. |
Methods
Name | Description |
---|---|
AreKeysSame(StaticKeys) | Determine if the contents of each key is the same for both objects.
If so, this method will return |
Dispose() | This will clear all references and sensitive buffers |
Dispose(Boolean) |