Package org.bouncycastle.pqc.crypto.util
Class SecretWithEncapsulationImpl
java.lang.Object
org.bouncycastle.pqc.crypto.util.SecretWithEncapsulationImpl
- All Implemented Interfaces:
Destroyable,org.bouncycastle.crypto.SecretWithEncapsulation
public class SecretWithEncapsulationImpl
extends Object
implements org.bouncycastle.crypto.SecretWithEncapsulation, Destroyable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SecretWithEncapsulationImpl
public SecretWithEncapsulationImpl(byte[] sessionKey, byte[] cipher_text)
-
-
Method Details
-
getSecret
public byte[] getSecret()- Specified by:
getSecretin interfaceorg.bouncycastle.crypto.SecretWithEncapsulation
-
getEncapsulation
public byte[] getEncapsulation()- Specified by:
getEncapsulationin interfaceorg.bouncycastle.crypto.SecretWithEncapsulation
-
destroy
- Specified by:
destroyin interfaceDestroyable- Throws:
DestroyFailedException
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-