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