|
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.TlsBlockCipher
A generic TLS 1.0-1.2 / SSLv3 block cipher. This can be used for AES or 3DES for example.
Field Summary | |
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 | |
TlsBlockCipher(TlsContext context,
BlockCipher clientWriteCipher,
BlockCipher serverWriteCipher,
Digest clientWriteDigest,
Digest serverWriteDigest,
int cipherKeySize)
Deprecated. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TlsContext context
protected byte[] randomData
protected boolean useExplicitIV
protected boolean encryptThenMAC
protected BlockCipher encryptCipher
protected BlockCipher decryptCipher
protected TlsMac writeMac
protected TlsMac readMac
Constructor Detail |
public TlsBlockCipher(TlsContext context, BlockCipher clientWriteCipher, BlockCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize) throws java.io.IOException
Method Detail |
public TlsMac getWriteMac()
public TlsMac getReadMac()
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 int checkPaddingConstantTime(byte[] buf, int off, int len, int blockSize, int macSize)
protected int chooseExtraPadBlocks(java.security.SecureRandom r, int max)
protected int lowestBitSet(int x)
|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |