| Modifier and Type | Method and Description |
|---|---|
| public TlsDecodeResult | Returns: ATlsDecodeResult containing the result of decoding.sequence number of the message represented by ciphertext. seqNo, short content type used in the record for this message. recordType, ProtocolVersion ProtocolVersion used for the record.array holding input ciphertext to the cipher. ciphertext, int offset into input array the ciphertext starts at. offset, int length of the ciphertext in the array. len)Decode the passed in ciphertext using the current bulk cipher. |
| public TlsEncodeResult | Returns: ATlsEncodeResult containing the result of encoding (after 'headerAllocation' unused bytes).sequence number of the message represented by plaintext. seqNo, short content type of the message represented by plaintext. contentType, ProtocolVersion ProtocolVersion used for the record.extra bytes to allocate at start of returned byte array. headerAllocation, byte[] array holding input plaintext to the cipher. plaintext, int offset into input array the plaintext starts at. offset, int length of the plaintext in the array. len)Encode the passed in plaintext using the current bulk cipher. |
| public int | Returns: the maximum input size of the ciphertext for plaintextLimit bytes of output.the maximum output size for the plaintext. plaintextLimit)Return the maximum input size for a ciphertext given a maximum output size for the plaintext of plaintextLimit bytes. |
| public int | Returns: the maximum output size of the ciphertext for plaintextLimit bytes of input.the maximum input size for the plaintext. plaintextLimit)Return the maximum output size for a ciphertext given a maximum input size for the plaintext of plaintextLimit bytes. |
| public int | Returns: the maximum output size of the plaintext for ciphertextLimit bytes of input.the maximum input size for the ciphertext. ciphertextLimit)Return the maximum output size for the plaintext given a maximum input size for the ciphertext of ciphertextLimit bytes. |
| public int | Returns: the maximum input size of the plaintext for ciphertextLimit bytes of output.the maximum output size for the ciphertext. ciphertextLimit)Return the maximum input size for the plaintext given a maximum output size for the ciphertext of ciphertextLimit bytes. |
| public void | |
| public void | |
| public boolean | |
| public boolean |
| decodeCiphertext | back to summary |
|---|---|
| public TlsDecodeResult decodeCiphertext(long seqNo, short recordType, ProtocolVersion recordVersion, byte[] ciphertext, int offset, int len) throws IOException Decode the passed in ciphertext using the current bulk cipher.
| |
| encodePlaintext | back to summary |
|---|---|
| public TlsEncodeResult encodePlaintext(long seqNo, short contentType, ProtocolVersion recordVersion, int headerAllocation, byte[] plaintext, int offset, int len) throws IOException Encode the passed in plaintext using the current bulk cipher.
| |
| getCiphertextDecodeLimit | back to summary |
|---|---|
| public int getCiphertextDecodeLimit(int plaintextLimit) Return the maximum input size for a ciphertext given a maximum output size for the plaintext of plaintextLimit bytes.
| |
| getCiphertextEncodeLimit | back to summary |
|---|---|
| public int getCiphertextEncodeLimit(int plaintextLimit) Return the maximum output size for a ciphertext given a maximum input size for the plaintext of plaintextLimit bytes.
| |
| getPlaintextDecodeLimit | back to summary |
|---|---|
| public int getPlaintextDecodeLimit(int ciphertextLimit) Return the maximum output size for the plaintext given a maximum input size for the ciphertext of ciphertextLimit bytes.
| |
| getPlaintextEncodeLimit | back to summary |
|---|---|
| public int getPlaintextEncodeLimit(int ciphertextLimit) Return the maximum input size for the plaintext given a maximum output size for the ciphertext of ciphertextLimit bytes.
| |
| rekeyDecoder | back to summary |
|---|---|
| public void rekeyDecoder() throws IOException | |
| rekeyEncoder | back to summary |
|---|---|
| public void rekeyEncoder() throws IOException | |
| usesOpaqueRecordTypeDecode | back to summary |
|---|---|
| public boolean usesOpaqueRecordTypeDecode() | |
| usesOpaqueRecordTypeEncode | back to summary |
|---|---|
| public boolean usesOpaqueRecordTypeEncode() | |