Package org.bouncycastle.crypto.tls
Class TlsAEADCipher
- java.lang.Object
-
- org.bouncycastle.crypto.tls.TlsAEADCipher
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsContextcontextDeprecated.protected AEADBlockCipherdecryptCipherDeprecated.protected byte[]decryptImplicitNonceDeprecated.protected AEADBlockCipherencryptCipherDeprecated.protected byte[]encryptImplicitNonceDeprecated.protected intmacSizeDeprecated.static intNONCE_RFC5288Deprecated.protected intnonceModeDeprecated.protected intrecord_iv_lengthDeprecated.
-
Constructor Summary
Constructors Constructor Description TlsAEADCipher(TlsContext context, AEADBlockCipher clientWriteCipher, AEADBlockCipher serverWriteCipher, int cipherKeySize, int macSize)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.protected byte[]getAdditionalData(long seqNo, short type, int len)Deprecated.intgetPlaintextLimit(int ciphertextLimit)Deprecated.
-
-
-
Field Detail
-
NONCE_RFC5288
public static final int NONCE_RFC5288
Deprecated.- See Also:
- Constant Field Values
-
context
protected TlsContext context
Deprecated.
-
macSize
protected int macSize
Deprecated.
-
record_iv_length
protected int record_iv_length
Deprecated.
-
encryptCipher
protected AEADBlockCipher encryptCipher
Deprecated.
-
decryptCipher
protected AEADBlockCipher decryptCipher
Deprecated.
-
encryptImplicitNonce
protected byte[] encryptImplicitNonce
Deprecated.
-
decryptImplicitNonce
protected byte[] decryptImplicitNonce
Deprecated.
-
nonceMode
protected int nonceMode
Deprecated.
-
-
Constructor Detail
-
TlsAEADCipher
public TlsAEADCipher(TlsContext context, AEADBlockCipher clientWriteCipher, AEADBlockCipher serverWriteCipher, int cipherKeySize, int macSize) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
getPlaintextLimit
public int getPlaintextLimit(int ciphertextLimit)
Deprecated.- Specified by:
getPlaintextLimitin interfaceTlsCipher
-
encodePlaintext
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len) throws java.io.IOExceptionDeprecated.- Specified by:
encodePlaintextin interfaceTlsCipher- Throws:
java.io.IOException
-
decodeCiphertext
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOExceptionDeprecated.- Specified by:
decodeCiphertextin interfaceTlsCipher- Throws:
java.io.IOException
-
getAdditionalData
protected byte[] getAdditionalData(long seqNo, short type, int len) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-