org.bouncycastle.crypto.tls

Class TlsBlockCipherCipherSuite

public class TlsBlockCipherCipherSuite extends TlsCipherSuite

A generic TLS 1.0 block cipher suite. This can be used for AES or 3DES for example.
Constructor Summary
protected TlsBlockCipherCipherSuite(BlockCipher encrypt, BlockCipher decrypt, Digest writeDigest, Digest readDigest, int cipherKeySize, short keyExchange)
Method Summary
protected byte[]decodeCiphertext(short type, byte[] ciphertext, int offset, int len, TlsProtocolHandler handler)
protected byte[]encodePlaintext(short type, byte[] plaintext, int offset, int len)
protected shortgetKeyExchangeAlgorithm()
protected voidinit(byte[] ms, byte[] cr, byte[] sr)

Constructor Detail

TlsBlockCipherCipherSuite

protected TlsBlockCipherCipherSuite(BlockCipher encrypt, BlockCipher decrypt, Digest writeDigest, Digest readDigest, int cipherKeySize, short keyExchange)

Method Detail

decodeCiphertext

protected byte[] decodeCiphertext(short type, byte[] ciphertext, int offset, int len, TlsProtocolHandler handler)

encodePlaintext

protected byte[] encodePlaintext(short type, byte[] plaintext, int offset, int len)

getKeyExchangeAlgorithm

protected short getKeyExchangeAlgorithm()

init

protected void init(byte[] ms, byte[] cr, byte[] sr)