Package org.bouncycastle.crypto.tls
Class TlsAEADCipher
- java.lang.Object
-
- org.bouncycastle.crypto.tls.TlsAEADCipher
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsContext
context
Deprecated.protected AEADBlockCipher
decryptCipher
Deprecated.protected byte[]
decryptImplicitNonce
Deprecated.protected AEADBlockCipher
encryptCipher
Deprecated.protected byte[]
encryptImplicitNonce
Deprecated.protected int
macSize
Deprecated.static int
NONCE_RFC5288
Deprecated.protected int
nonceMode
Deprecated.protected int
record_iv_length
Deprecated.
-
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.int
getPlaintextLimit(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:
getPlaintextLimit
in interfaceTlsCipher
-
encodePlaintext
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len) throws java.io.IOException
Deprecated.- Specified by:
encodePlaintext
in interfaceTlsCipher
- Throws:
java.io.IOException
-
decodeCiphertext
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOException
Deprecated.- Specified by:
decodeCiphertext
in interfaceTlsCipher
- Throws:
java.io.IOException
-
getAdditionalData
protected byte[] getAdditionalData(long seqNo, short type, int len) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-