Class TlsAEADCipher

  • All Implemented Interfaces:
    TlsCipher

    public class TlsAEADCipher
    extends java.lang.Object
    implements TlsCipher
    Deprecated.
    Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
    • Field Detail

      • context

        protected TlsContext context
        Deprecated.
      • macSize

        protected int macSize
        Deprecated.
      • record_iv_length

        protected int record_iv_length
        Deprecated.
      • encryptImplicitNonce

        protected byte[] encryptImplicitNonce
        Deprecated.
      • decryptImplicitNonce

        protected byte[] decryptImplicitNonce
        Deprecated.
      • nonceMode

        protected int nonceMode
        Deprecated.
    • Constructor Detail

      • TlsAEADCipher

        public TlsAEADCipher​(TlsContext context,
                             AEADBlockCipher clientWriteCipher,
                             AEADBlockCipher serverWriteCipher,
                             int cipherKeySize,
                             int macSize)
                      throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
    • Method Detail

      • getPlaintextLimit

        public int getPlaintextLimit​(int ciphertextLimit)
        Deprecated.
        Specified by:
        getPlaintextLimit in interface TlsCipher
      • encodePlaintext

        public byte[] encodePlaintext​(long seqNo,
                                      short type,
                                      byte[] plaintext,
                                      int offset,
                                      int len)
                               throws java.io.IOException
        Deprecated.
        Specified by:
        encodePlaintext in interface TlsCipher
        Throws:
        java.io.IOException
      • decodeCiphertext

        public byte[] decodeCiphertext​(long seqNo,
                                       short type,
                                       byte[] ciphertext,
                                       int offset,
                                       int len)
                                throws java.io.IOException
        Deprecated.
        Specified by:
        decodeCiphertext in interface TlsCipher
        Throws:
        java.io.IOException
      • getAdditionalData

        protected byte[] getAdditionalData​(long seqNo,
                                           short type,
                                           int len)
                                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException