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 Details

    • SecretWithEncapsulationImpl

      public SecretWithEncapsulationImpl(byte[] sessionKey, byte[] cipher_text)
  • Method Details

    • getSecret

      public byte[] getSecret()
      Specified by:
      getSecret in interface org.bouncycastle.crypto.SecretWithEncapsulation
    • getEncapsulation

      public byte[] getEncapsulation()
      Specified by:
      getEncapsulation in interface org.bouncycastle.crypto.SecretWithEncapsulation
    • destroy

      public void destroy() throws DestroyFailedException
      Specified by:
      destroy in interface Destroyable
      Throws:
      DestroyFailedException
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface Destroyable