Class AgreementKey
A key-agreement secret, and the public key to hand to a peer.
public sealed class AgreementKey : IDisposable
- Inheritance
-
AgreementKey
- Implements
- Inherited Members
Constructors
AgreementKey(ReadOnlySpan<byte>)
Creates a key-agreement secret from a provisioned 32-byte seed.
public AgreementKey(ReadOnlySpan<byte> seed)
Parameters
seedReadOnlySpan<byte>The device's secret, held on the device only.
Exceptions
- PamojaException
The native key could not be created.
Fields
KeyLength
The length in bytes of a seed and of a public key.
public const int KeyLength = 32
Field Value
Properties
PublicKey
Gets the public key to hand to a peer.
public byte[] PublicKey { get; }
Property Value
- byte[]
Exceptions
- PamojaException
The native call failed.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()