Package org.bouncycastle.crypto.tls
Class TlsStreamCipher
- java.lang.Object
-
- org.bouncycastle.crypto.tls.TlsStreamCipher
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsContextcontextDeprecated.protected StreamCipherdecryptCipherDeprecated.protected StreamCipherencryptCipherDeprecated.protected TlsMacreadMacDeprecated.protected booleanusesNonceDeprecated.protected TlsMacwriteMacDeprecated.
-
Constructor Summary
Constructors Constructor Description TlsStreamCipher(TlsContext context, StreamCipher clientWriteCipher, StreamCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize, boolean usesNonce)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcheckMAC(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.intgetPlaintextLimit(int ciphertextLimit)Deprecated.protected voidupdateIV(StreamCipher cipher, boolean forEncryption, long seqNo)Deprecated.
-
-
-
Field Detail
-
context
protected TlsContext context
Deprecated.
-
encryptCipher
protected StreamCipher encryptCipher
Deprecated.
-
decryptCipher
protected StreamCipher decryptCipher
Deprecated.
-
writeMac
protected TlsMac writeMac
Deprecated.
-
readMac
protected TlsMac readMac
Deprecated.
-
usesNonce
protected boolean usesNonce
Deprecated.
-
-
Constructor Detail
-
TlsStreamCipher
public TlsStreamCipher(TlsContext context, StreamCipher clientWriteCipher, StreamCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize, boolean usesNonce) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
getPlaintextLimit
public int getPlaintextLimit(int ciphertextLimit)
Deprecated.- Specified by:
getPlaintextLimitin interfaceTlsCipher
-
encodePlaintext
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)Deprecated.- Specified by:
encodePlaintextin interfaceTlsCipher
-
decodeCiphertext
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOExceptionDeprecated.- Specified by:
decodeCiphertextin interfaceTlsCipher- Throws:
java.io.IOException
-
checkMAC
protected void checkMAC(long seqNo, short type, byte[] recBuf, int recStart, int recEnd, byte[] calcBuf, int calcOff, int calcLen) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
updateIV
protected void updateIV(StreamCipher cipher, boolean forEncryption, long seqNo)
Deprecated.
-
-