| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final TlsCryptoParameters | |
| private final TlsBlockCipherImpl | |
| private final byte[] | |
| private final boolean | |
| private final TlsBlockCipherImpl | |
| private final byte[] | |
| private final boolean | |
| private final boolean | |
| private final byte[] | |
| private final TlsSuiteMac | |
| private final boolean | |
| private final boolean | |
| private final TlsSuiteMac |
| Access | Constructor and Description |
|---|---|
| public | TlsBlockCipher(TlsCryptoParameters cryptoParams, TlsBlockCipherImpl encryptCipher, TlsBlockCipherImpl decryptCipher, TlsHMAC clientMac, TlsHMAC serverMac, int cipherKeySize)
|
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| 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. offset, int length of the ciphertext in the array. len)Implements org. |
| 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. offset, int length of the plaintext in the array. len)Implements org. |
| public int | getCiphertextDecodeLimit(int
the maximum output size for the plaintext. plaintextLimit)Implements org. |
| public int | getCiphertextEncodeLimit(int
the maximum input size for the plaintext. plaintextLimit)Implements org. |
| private int | |
| public int | getPlaintextDecodeLimit(int
the maximum input size for the ciphertext. ciphertextLimit)Implements org. |
| public int | getPlaintextEncodeLimit(int
the maximum output size for the ciphertext. ciphertextLimit)Implements org. |
| private int | |
| public void | |
| public void | |
| public boolean | |
| public boolean |
| acceptExtraPadding | back to summary |
|---|---|
| private final boolean acceptExtraPadding | |
| cryptoParams | back to summary |
|---|---|
| private final TlsCryptoParameters cryptoParams | |
| decryptCipher | back to summary |
|---|---|
| private final TlsBlockCipherImpl decryptCipher | |
| decryptConnectionID | back to summary |
|---|---|
| private final byte[] decryptConnectionID | |
| decryptUseInnerPlaintext | back to summary |
|---|---|
| private final boolean decryptUseInnerPlaintext | |
| encryptCipher | back to summary |
|---|---|
| private final TlsBlockCipherImpl encryptCipher | |
| encryptConnectionID | back to summary |
|---|---|
| private final byte[] encryptConnectionID | |
| encryptThenMAC | back to summary |
|---|---|
| private final boolean encryptThenMAC | |
| encryptUseInnerPlaintext | back to summary |
|---|---|
| private final boolean encryptUseInnerPlaintext | |
| randomData | back to summary |
|---|---|
| private final byte[] randomData | |
| readMac | back to summary |
|---|---|
| private final TlsSuiteMac readMac | |
| useExplicitIV | back to summary |
|---|---|
| private final boolean useExplicitIV | |
| useExtraPadding | back to summary |
|---|---|
| private final boolean useExtraPadding | |
| writeMac | back to summary |
|---|---|
| private final TlsSuiteMac writeMac | |
| TlsBlockCipher | back to summary |
|---|---|
| public TlsBlockCipher(TlsCryptoParameters cryptoParams, TlsBlockCipherImpl encryptCipher, TlsBlockCipherImpl decryptCipher, TlsHMAC clientMac, TlsHMAC serverMac, int cipherKeySize) throws IOException | |
| checkPaddingConstantTime | back to summary |
|---|---|
| private int checkPaddingConstantTime(byte[] buf, int off, int len, int blockSize, int macSize) | |
| chooseExtraPadBlocks | back to summary |
|---|---|
| private int chooseExtraPadBlocks(int max) | |
| decodeCiphertext | back to summary |
|---|---|
| public TlsDecodeResult decodeCiphertext(long seqNo, short recordType, ProtocolVersion recordVersion, byte[] ciphertext, int offset, int len) 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 offset, int len) throws IOException Implements org. Doc from org. Encode the passed in plaintext using the current bulk cipher.
| |
| 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.
| |
| getCiphertextLength | back to summary |
|---|---|
| private int getCiphertextLength(int blockSize, int macSize, int maxPadding, int plaintextLength) | |
| 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.
| |
| getPlaintextLength | back to summary |
|---|---|
| private int getPlaintextLength(int blockSize, int macSize, int ciphertextLength) | |
| rekeyDecoder | back to summary |
|---|---|
| public void rekeyDecoder() throws IOException Implements org. | |
| rekeyEncoder | back to summary |
|---|---|
| public void rekeyEncoder() throws IOException Implements org. | |
| usesOpaqueRecordTypeDecode | back to summary |
|---|---|
| public boolean usesOpaqueRecordTypeDecode() Implements org. | |
| usesOpaqueRecordTypeEncode | back to summary |
|---|---|
| public boolean usesOpaqueRecordTypeEncode() Implements org. | |