|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.tls.TlsStreamCipher
Field Summary | |
protected TlsContext |
context
Deprecated. |
protected StreamCipher |
decryptCipher
Deprecated. |
protected StreamCipher |
encryptCipher
Deprecated. |
protected TlsMac |
readMac
Deprecated. |
protected boolean |
usesNonce
Deprecated. |
protected TlsMac |
writeMac
Deprecated. |
Constructor Summary | |
TlsStreamCipher(TlsContext context,
StreamCipher clientWriteCipher,
StreamCipher serverWriteCipher,
Digest clientWriteDigest,
Digest serverWriteDigest,
int cipherKeySize,
boolean usesNonce)
Deprecated. |
Method Summary | |
protected void |
checkMAC(long seqNo,
short type,
byte[] recBuf,
int recStart,
int recEnd,
byte[] calcBuf,
int calcOff,
int calcLen)
Deprecated. |
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. |
int |
getPlaintextLimit(int ciphertextLimit)
Deprecated. |
protected void |
updateIV(StreamCipher cipher,
boolean forEncryption,
long seqNo)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TlsContext context
protected StreamCipher encryptCipher
protected StreamCipher decryptCipher
protected TlsMac writeMac
protected TlsMac readMac
protected boolean usesNonce
Constructor Detail |
public TlsStreamCipher(TlsContext context, StreamCipher clientWriteCipher, StreamCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize, boolean usesNonce) throws java.io.IOException
Method Detail |
public int getPlaintextLimit(int ciphertextLimit)
getPlaintextLimit
in interface TlsCipher
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)
encodePlaintext
in interface TlsCipher
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 void checkMAC(long seqNo, short type, byte[] recBuf, int recStart, int recEnd, byte[] calcBuf, int calcOff, int calcLen) throws java.io.IOException
java.io.IOException
protected void updateIV(StreamCipher cipher, boolean forEncryption, long seqNo)
|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |