| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| private final TlsCryptoParameters | |
| private final TlsAEADCipherImpl | |
| private final byte[] | |
| private final byte[] | |
| private final boolean | |
| private final TlsAEADCipherImpl | |
| private final byte[] | |
| private final byte[] | |
| private final boolean | |
| private static final byte[] | |
| private final int | |
| private final boolean | |
| private final int | |
| private final int | |
| private static final int | |
| private static final int | |
| private final AEADNonceGenerator | |
| private final int | |
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | TlsAEADCipher(TlsCryptoParameters cryptoParams, TlsAEADCipherImpl encryptCipher, TlsAEADCipherImpl decryptCipher, int keySize, int macSize, int aeadType)
Deprecated
Use version with extra 'nonceGeneratorFactory' parameter
|
| public | TlsAEADCipher(TlsCryptoParameters cryptoParams, TlsAEADCipherImpl encryptCipher, TlsAEADCipherImpl decryptCipher, int keySize, int macSize, int aeadType, AEADNonceGeneratorFactory nonceGeneratorFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public TlsDecodeResult | decodeCiphertext(long
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. ciphertextOffset, int length of the ciphertext in the array. ciphertextLength)Implements org. Decode the passed in ciphertext using the current bulk cipher. |
| public TlsEncodeResult | encodePlaintext(long
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. plaintextOffset, int length of the plaintext in the array. plaintextLength)Implements org. Encode the passed in plaintext using the current bulk cipher. |
| private byte[] | getAdditionalData(long seqNo, short recordType, ProtocolVersion recordVersion, int ciphertextLength, int plaintextLength, byte[] connectionID)
|
| public int | getCiphertextDecodeLimit(int
the maximum output size for the plaintext. plaintextLimit)Implements org. Return the maximum input size for a ciphertext given a maximum output size for the plaintext of plaintextLimit bytes. |
| public int | getCiphertextEncodeLimit(int
the maximum input size for the plaintext. plaintextLimit)Implements org. Return the maximum output size for a ciphertext given a maximum input size for the plaintext of plaintextLimit bytes. |
| private static int | |
| public int | getPlaintextDecodeLimit(int
the maximum input size for the ciphertext. ciphertextLimit)Implements org. Return the maximum output size for the plaintext given a maximum input size for the ciphertext of ciphertextLimit bytes. |
| public int | getPlaintextEncodeLimit(int
the maximum output size for the ciphertext. ciphertextLimit)Implements org. Return the maximum input size for the plaintext given a maximum output size for the ciphertext of ciphertextLimit bytes. |
| private void | rekeyCipher(SecurityParameters securityParameters, TlsAEADCipherImpl cipher, byte[] nonce, boolean serverSecret)
|
| public void | |
| public void | |
| private void | |
| public boolean | |
| public boolean |
| AEAD_CCM | back to summary |
|---|---|
| public static final int AEAD_CCM | |
| AEAD_CHACHA20_POLY1305 | back to summary |
|---|---|
| public static final int AEAD_CHACHA20_POLY1305 | |
| AEAD_GCM | back to summary |
|---|---|
| public static final int AEAD_GCM | |
| cryptoParams | back to summary |
|---|---|
| private final TlsCryptoParameters cryptoParams | |
| decryptCipher | back to summary |
|---|---|
| private final TlsAEADCipherImpl decryptCipher | |
| decryptConnectionID | back to summary |
|---|---|
| private final byte[] decryptConnectionID | |
| decryptNonce | back to summary |
|---|---|
| private final byte[] decryptNonce | |
| decryptUseInnerPlaintext | back to summary |
|---|---|
| private final boolean decryptUseInnerPlaintext | |
| encryptCipher | back to summary |
|---|---|
| private final TlsAEADCipherImpl encryptCipher | |
| encryptConnectionID | back to summary |
|---|---|
| private final byte[] encryptConnectionID | |
| encryptNonce | back to summary |
|---|---|
| private final byte[] encryptNonce | |
| encryptUseInnerPlaintext | back to summary |
|---|---|
| private final boolean encryptUseInnerPlaintext | |
| EPOCH_1 | back to summary |
|---|---|
| private static final byte[] EPOCH_1 | |
| fixed_iv_length | back to summary |
|---|---|
| private final int fixed_iv_length | |
| isTLSv13 | back to summary |
|---|---|
| private final boolean isTLSv13 | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| macSize | back to summary |
|---|---|
| private final int macSize | |
| NONCE_RFC5288 | back to summary |
|---|---|
| private static final int NONCE_RFC5288 | |
| NONCE_RFC7905 | back to summary |
|---|---|
| private static final int NONCE_RFC7905 | |
| nonceGenerator | back to summary |
|---|---|
| private final AEADNonceGenerator nonceGenerator | |
| nonceMode | back to summary |
|---|---|
| private final int nonceMode | |
| record_iv_length | back to summary |
|---|---|
| private final int record_iv_length | |
| SEQUENCE_NUMBER_PLACEHOLDER | back to summary |
|---|---|
| private static final long SEQUENCE_NUMBER_PLACEHOLDER | |
| TlsAEADCipher | back to summary |
|---|---|
| public TlsAEADCipher(TlsCryptoParameters cryptoParams, TlsAEADCipherImpl encryptCipher, TlsAEADCipherImpl decryptCipher, int keySize, int macSize, int aeadType) throws IOException
Deprecated Use version with extra 'nonceGeneratorFactory' parameter | |
| TlsAEADCipher | back to summary |
|---|---|
| public TlsAEADCipher(TlsCryptoParameters cryptoParams, TlsAEADCipherImpl encryptCipher, TlsAEADCipherImpl decryptCipher, int keySize, int macSize, int aeadType, AEADNonceGeneratorFactory nonceGeneratorFactory) throws IOException | |
| decodeCiphertext | back to summary |
|---|---|
| public TlsDecodeResult decodeCiphertext(long seqNo, short recordType, ProtocolVersion recordVersion, byte[] ciphertext, int ciphertextOffset, int ciphertextLength) throws IOException Implements org. Doc from org. 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 plaintextOffset, int plaintextLength) throws IOException Implements org. Doc from org. Encode the passed in plaintext using the current bulk cipher.
| |
| getAdditionalData | back to summary |
|---|---|
| private byte[] getAdditionalData(long seqNo, short recordType, ProtocolVersion recordVersion, int ciphertextLength, int plaintextLength, byte[] connectionID) throws IOException | |
| getCiphertextDecodeLimit | back to summary |
|---|---|
| public int getCiphertextDecodeLimit(int plaintextLimit) Implements org. Doc from org. 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) Implements org. Doc from org. Return the maximum output size for a ciphertext given a maximum input size for the plaintext of plaintextLimit bytes.
| |
| getNonceMode | back to summary |
|---|---|
| private static int getNonceMode(boolean isTLSv13, int aeadType) throws IOException | |
| getPlaintextDecodeLimit | back to summary |
|---|---|
| public int getPlaintextDecodeLimit(int ciphertextLimit) Implements org. Doc from org. 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) Implements org. Doc from org. Return the maximum input size for the plaintext given a maximum output size for the ciphertext of ciphertextLimit bytes.
| |
| rekeyCipher | back to summary |
|---|---|
| private void rekeyCipher(SecurityParameters securityParameters, TlsAEADCipherImpl cipher, byte[] nonce, boolean serverSecret) throws IOException | |
| rekeyDecoder | back to summary |
|---|---|
| public void rekeyDecoder() throws IOException Implements org. | |
| rekeyEncoder | back to summary |
|---|---|
| public void rekeyEncoder() throws IOException Implements org. | |
| setup13Cipher | back to summary |
|---|---|
| private void setup13Cipher(TlsAEADCipherImpl cipher, byte[] nonce, TlsSecret secret, int cryptoHashAlgorithm) throws IOException | |
| usesOpaqueRecordTypeDecode | back to summary |
|---|---|
| public boolean usesOpaqueRecordTypeDecode() Implements org. | |
| usesOpaqueRecordTypeEncode | back to summary |
|---|---|
| public boolean usesOpaqueRecordTypeEncode() Implements org. | |