Modifier and Type | Field and 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 and Description |
---|
TlsAEADCipher(TlsContext context,
AEADBlockCipher clientWriteCipher,
AEADBlockCipher serverWriteCipher,
int cipherKeySize,
int macSize)
Deprecated.
|
Modifier and Type | Method and 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.
|
public static final int NONCE_RFC5288
protected TlsContext context
protected int macSize
protected int record_iv_length
protected AEADBlockCipher encryptCipher
protected AEADBlockCipher decryptCipher
protected byte[] encryptImplicitNonce
protected byte[] decryptImplicitNonce
protected int nonceMode
public TlsAEADCipher(TlsContext context, AEADBlockCipher clientWriteCipher, AEADBlockCipher serverWriteCipher, int cipherKeySize, int macSize) throws java.io.IOException
java.io.IOException
public int getPlaintextLimit(int ciphertextLimit)
getPlaintextLimit
in interface TlsCipher
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len) throws java.io.IOException
encodePlaintext
in interface TlsCipher
java.io.IOException
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOException
decodeCiphertext
in interface TlsCipher
java.io.IOException
protected byte[] getAdditionalData(long seqNo, short type, int len) throws java.io.IOException
java.io.IOException