Table of Contents

Class SecretWithEncapsulationImpl

Namespace
Org.BouncyCastle.Pqc.Crypto.Utilities
Assembly
BouncyCastle.Cryptography.dll
public class SecretWithEncapsulationImpl : ISecretWithEncapsulation, IDisposable
Inheritance
SecretWithEncapsulationImpl
Implements
Inherited Members

Constructors

SecretWithEncapsulationImpl(byte[], byte[])

public SecretWithEncapsulationImpl(byte[] sessionKey, byte[] cipher_text)

Parameters

sessionKey byte[]
cipher_text byte[]

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

disposing bool

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()

Returns

bool