Class BcMlsAead

java.lang.Object
org.bouncycastle.mls.crypto.bc.BcMlsAead
All Implemented Interfaces:
MlsAead

public class BcMlsAead extends Object implements MlsAead
  • Constructor Details

    • BcMlsAead

      public BcMlsAead(short aeadId)
  • Method Details

    • getKeySize

      public int getKeySize()
      Specified by:
      getKeySize in interface MlsAead
    • getNonceSize

      public int getNonceSize()
      Specified by:
      getNonceSize in interface MlsAead
    • open

      public byte[] open(byte[] key, byte[] nonce, byte[] aad, byte[] ct) throws org.bouncycastle.crypto.InvalidCipherTextException
      Specified by:
      open in interface MlsAead
      Throws:
      org.bouncycastle.crypto.InvalidCipherTextException
    • seal

      public byte[] seal(byte[] key, byte[] nonce, byte[] aad, byte[] pt) throws org.bouncycastle.crypto.InvalidCipherTextException
      Specified by:
      seal in interface MlsAead
      Throws:
      org.bouncycastle.crypto.InvalidCipherTextException