Class TlsNullCipher

  • All Implemented Interfaces:
    TlsCipher

    public class TlsNullCipher
    extends java.lang.Object
    implements TlsCipher
    Deprecated.
    Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
    A NULL CipherSuite with optional MAC
    • Field Detail

      • context

        protected TlsContext context
        Deprecated.
      • writeMac

        protected TlsMac writeMac
        Deprecated.
      • readMac

        protected TlsMac readMac
        Deprecated.
    • Constructor Detail

      • TlsNullCipher

        public TlsNullCipher​(TlsContext context)
        Deprecated.
      • TlsNullCipher

        public TlsNullCipher​(TlsContext context,
                             Digest clientWriteDigest,
                             Digest serverWriteDigest)
                      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