Class Scp03KeyParameters
Represents the parameters for a Secure Channel Protocol 03 (SCP03) key.
public sealed class Scp03KeyParameters : ScpKeyParameters
- Inheritance
-
objectScp03KeyParameters
- Inherited Members
Constructors
Scp03KeyParameters(byte, byte, StaticKeys)
Creates a new instance of Scp03KeyParameters, representing the parameters for a Secure Channel Protocol 03 (SCP03) key.
public Scp03KeyParameters(byte keyId, byte keyVersionNumber, StaticKeys staticKeys)
Parameters
keyIdbyteThe ID of the key. Must be between 1 and 3 for SCP03.
keyVersionNumberbyteThe version number of the key.
staticKeysStaticKeysThe static keys shared with the device.
Exceptions
- ArgumentException
Thrown if
keyIdis not between 1 and 3, which are the only valid Key IDs for SCP03
Scp03KeyParameters(KeyReference, StaticKeys)
Creates a new instance of Scp03KeyParameters, representing the parameters for a Secure Channel Protocol 03 (SCP03) key.
public Scp03KeyParameters(KeyReference keyReference, StaticKeys staticKeys)
Parameters
keyReferenceKeyReferenceA reference to the key.
staticKeysStaticKeysThe static keys shared with the device when initiating the connection.
Exceptions
- ArgumentException
Thrown if
keyReference.Id.Idis not between 1 and 3, which are the only valid Key IDs for SCP03
Properties
DefaultKey
Gets the default SCP03 key parameters using the default key identifier and static keys.
public static Scp03KeyParameters DefaultKey { get; }
Property Value
Remarks
This property provides a convenient way to access default SCP03 key parameters, using the standard SCP03 key identifier (0x03) and default static keys with version number 0xFF.
StaticKeys
The static keys shared with the device when initiating the connection.
public StaticKeys StaticKeys { get; }
Property Value
Methods
Dispose()
This will clear all references and sensitive buffers
public void Dispose()
FromStaticKeys(StaticKeys)
Creates a new instance of Scp03KeyParameters, representing the parameters for a Secure Channel Protocol 03 (SCP03) key, using the standard SCP03 key identifier and the given static keys.
public static Scp03KeyParameters FromStaticKeys(StaticKeys staticKeys)
Parameters
staticKeysStaticKeysThe static keys shared with the device.
Returns
- Scp03KeyParameters
An instance of Scp03KeyParameters with key ID 0x03 and version number 0x01.