Package org.bouncycastle.crypto.tls
Class TlsBlockCipher
- java.lang.Object
-
- org.bouncycastle.crypto.tls.TlsBlockCipher
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsContext
context
Deprecated.protected BlockCipher
decryptCipher
Deprecated.protected BlockCipher
encryptCipher
Deprecated.protected boolean
encryptThenMAC
Deprecated.protected byte[]
randomData
Deprecated.protected TlsMac
readMac
Deprecated.protected boolean
useExplicitIV
Deprecated.protected TlsMac
writeMac
Deprecated.
-
Constructor Summary
Constructors Constructor Description TlsBlockCipher(TlsContext context, BlockCipher clientWriteCipher, BlockCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected int
checkPaddingConstantTime(byte[] buf, int off, int len, int blockSize, int macSize)
Deprecated.protected int
chooseExtraPadBlocks(java.security.SecureRandom r, int max)
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.TlsMac
getReadMac()
Deprecated.TlsMac
getWriteMac()
Deprecated.protected int
lowestBitSet(int x)
Deprecated.
-
-
-
Field Detail
-
context
protected TlsContext context
Deprecated.
-
randomData
protected byte[] randomData
Deprecated.
-
useExplicitIV
protected boolean useExplicitIV
Deprecated.
-
encryptThenMAC
protected boolean encryptThenMAC
Deprecated.
-
encryptCipher
protected BlockCipher encryptCipher
Deprecated.
-
decryptCipher
protected BlockCipher decryptCipher
Deprecated.
-
writeMac
protected TlsMac writeMac
Deprecated.
-
readMac
protected TlsMac readMac
Deprecated.
-
-
Constructor Detail
-
TlsBlockCipher
public TlsBlockCipher(TlsContext context, BlockCipher clientWriteCipher, BlockCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
getWriteMac
public TlsMac getWriteMac()
Deprecated.
-
getReadMac
public TlsMac getReadMac()
Deprecated.
-
getPlaintextLimit
public int getPlaintextLimit(int ciphertextLimit)
Deprecated.- Specified by:
getPlaintextLimit
in interfaceTlsCipher
-
encodePlaintext
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)
Deprecated.- Specified by:
encodePlaintext
in interfaceTlsCipher
-
decodeCiphertext
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOException
Deprecated.- Specified by:
decodeCiphertext
in interfaceTlsCipher
- Throws:
java.io.IOException
-
checkPaddingConstantTime
protected int checkPaddingConstantTime(byte[] buf, int off, int len, int blockSize, int macSize)
Deprecated.
-
chooseExtraPadBlocks
protected int chooseExtraPadBlocks(java.security.SecureRandom r, int max)
Deprecated.
-
lowestBitSet
protected int lowestBitSet(int x)
Deprecated.
-
-