Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Interface TlsCipher

All Known Implementing Classes:
Chacha20Poly1305, TlsAEADCipher, TlsBlockCipher, TlsNullCipher, TlsStreamCipher

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public interface TlsCipher


Method Summary
 byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len)
          Deprecated.  
 byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)
          Deprecated.  
 int getPlaintextLimit(int ciphertextLimit)
          Deprecated.  
 

Method Detail

getPlaintextLimit

public int getPlaintextLimit(int ciphertextLimit)
Deprecated. 

encodePlaintext

public byte[] encodePlaintext(long seqNo,
                              short type,
                              byte[] plaintext,
                              int offset,
                              int len)
                       throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

decodeCiphertext

public byte[] decodeCiphertext(long seqNo,
                               short type,
                               byte[] ciphertext,
                               int offset,
                               int len)
                        throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.64