Class BcX448
Support class for X448 using the BC light-weight library.
public class BcX448 : TlsAgreement
- Inheritance
-
BcX448
- Implements
- Inherited Members
Constructors
BcX448(BcTlsCrypto)
public BcX448(BcTlsCrypto crypto)
Parameters
cryptoBcTlsCrypto
Fields
m_crypto
protected readonly BcTlsCrypto m_crypto
Field Value
m_peerPublicKey
protected readonly byte[] m_peerPublicKey
Field Value
- byte[]
m_privateKey
protected readonly byte[] m_privateKey
Field Value
- byte[]
Methods
CalculateSecret()
Calculate the agreed secret based on the calculator's current state.
public virtual TlsSecret CalculateSecret()
Returns
- TlsSecret
the calculated secret.
Exceptions
GenerateEphemeral()
Generate an ephemeral key pair, returning the encoding of the public key.
public virtual byte[] GenerateEphemeral()
Returns
- byte[]
a byte encoding of the public key.
Exceptions
ReceivePeerValue(byte[])
Pass in the public key for the peer to the agreement calculator.
public virtual void ReceivePeerValue(byte[] peerValue)
Parameters
peerValuebyte[]a byte encoding of the peer public key.