Modifier and Type | Field and Description |
---|---|
protected TlsContext |
context |
protected TlsMac |
readMac |
protected TlsMac |
writeMac |
Constructor and Description |
---|
TlsNullCipher(TlsContext context) |
TlsNullCipher(TlsContext context,
Digest clientWriteDigest,
Digest serverWriteDigest) |
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) |
int |
getPlaintextLimit(int ciphertextLimit) |
protected TlsContext context
protected TlsMac writeMac
protected TlsMac readMac
public TlsNullCipher(TlsContext context)
public TlsNullCipher(TlsContext context, Digest clientWriteDigest, Digest serverWriteDigest) throws IOException
IOException
public int getPlaintextLimit(int ciphertextLimit)
getPlaintextLimit
in interface TlsCipher
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len) throws IOException
encodePlaintext
in interface TlsCipher
IOException
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws IOException
decodeCiphertext
in interface TlsCipher
IOException