org.bouncycastle.crypto.tls
Class TlsBlockCipherCipherSuite
java.lang.Object
org.bouncycastle.crypto.tls.TlsCipherSuite
org.bouncycastle.crypto.tls.TlsBlockCipherCipherSuite
public class TlsBlockCipherCipherSuite
- extends TlsCipherSuite
A generic TLS 1.0 block cipher suite. This can be used for AES or 3DES for
example.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TlsBlockCipherCipherSuite
protected TlsBlockCipherCipherSuite(BlockCipher encrypt,
BlockCipher decrypt,
Digest writeDigest,
Digest readDigest,
int cipherKeySize,
short keyExchange)
init
protected void init(byte[] ms,
byte[] cr,
byte[] sr)
- Specified by:
init
in class TlsCipherSuite
encodePlaintext
protected byte[] encodePlaintext(short type,
byte[] plaintext,
int offset,
int len)
- Specified by:
encodePlaintext
in class TlsCipherSuite
decodeCiphertext
protected byte[] decodeCiphertext(short type,
byte[] ciphertext,
int offset,
int len,
TlsProtocolHandler handler)
throws java.io.IOException
- Specified by:
decodeCiphertext
in class TlsCipherSuite
- Throws:
java.io.IOException
getKeyExchangeAlgorithm
protected short getKeyExchangeAlgorithm()
- Specified by:
getKeyExchangeAlgorithm
in class TlsCipherSuite