Modifier and Type | Field | 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 | Description |
---|---|
TlsAEADCipher(TlsContext context,
AEADBlockCipher clientWriteCipher,
AEADBlockCipher serverWriteCipher,
int cipherKeySize,
int macSize) |
Modifier and Type | Method | 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.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