TlsCipher (Bouncy Castle Library 1.52 API Specification)

org.bouncycastle.crypto.tls

## Interface TlsCipher

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

      public interface TlsCipher

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len)`
    `byte[]` | `encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)`
    `int` | `getPlaintextLimit(int ciphertextLimit)`

- - ### Method Detail

    - #### getPlaintextLimit

          int getPlaintextLimit(int ciphertextLimit)

    - #### encodePlaintext

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

      Throws:
        `java.io.IOException`

    - #### decodeCiphertext

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

      Throws:
        `java.io.IOException`