Modifier and Type | Field and Description |
---|---|
protected TlsContext |
context |
protected AEADBlockCipher |
decryptCipher |
protected byte[] |
decryptImplicitNonce |
protected AEADBlockCipher |
encryptCipher |
protected byte[] |
encryptImplicitNonce |
protected int |
macSize |
protected int |
nonce_explicit_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) |
protected TlsContext context
protected int macSize
protected int nonce_explicit_length
protected AEADBlockCipher encryptCipher
protected AEADBlockCipher decryptCipher
protected byte[] encryptImplicitNonce
protected byte[] decryptImplicitNonce
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