Class SNtruPrimeKemGenerator.SecretWithEncapsulationImpl
- Namespace
- Org.BouncyCastle.Pqc.Crypto.NtruPrime
- Assembly
- BouncyCastle.Cryptography.dll
public class SNtruPrimeKemGenerator.SecretWithEncapsulationImpl : ISecretWithEncapsulation, IDisposable
- Inheritance
-
SNtruPrimeKemGenerator.SecretWithEncapsulationImpl
- Implements
- Inherited Members
Constructors
SecretWithEncapsulationImpl(byte[], byte[])
public SecretWithEncapsulationImpl(byte[] sessionKey, byte[] cipherText)
Parameters
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
GetEncapsulation()
Return the data that carries the secret in its encapsulated form.
public byte[] GetEncapsulation()
Returns
- byte[]
the encapsulation of the secret.
GetSecret()
Return the secret associated with the encapsulation.
public byte[] GetSecret()
Returns
- byte[]
the secret the encapsulation is for.
IsDestroyed()
public bool IsDestroyed()