org.bouncycastle.crypto.tls

Class TlsCipherSuite

public abstract class TlsCipherSuite extends Object

A generic class for ciphersuites in TLS 1.0.
Field Summary
protected static shortKE_DHE_DSS
protected static shortKE_DHE_DSS_EXPORT
protected static shortKE_DHE_RSA
protected static shortKE_DHE_RSA_EXPORT
protected static shortKE_DH_anon
protected static shortKE_DH_DSS
protected static shortKE_DH_RSA
protected static shortKE_RSA
protected static shortKE_RSA_EXPORT
Method Summary
protected abstract byte[]decodeCiphertext(short type, byte[] plaintext, int offset, int len, TlsProtocolHandler handler)
protected abstract byte[]encodePlaintext(short type, byte[] plaintext, int offset, int len)
protected abstract shortgetKeyExchangeAlgorithm()
protected abstract voidinit(byte[] ms, byte[] cr, byte[] sr)

Field Detail

KE_DHE_DSS

protected static final short KE_DHE_DSS

KE_DHE_DSS_EXPORT

protected static final short KE_DHE_DSS_EXPORT

KE_DHE_RSA

protected static final short KE_DHE_RSA

KE_DHE_RSA_EXPORT

protected static final short KE_DHE_RSA_EXPORT

KE_DH_anon

protected static final short KE_DH_anon

KE_DH_DSS

protected static final short KE_DH_DSS

KE_DH_RSA

protected static final short KE_DH_RSA

KE_RSA

protected static final short KE_RSA

KE_RSA_EXPORT

protected static final short KE_RSA_EXPORT

Method Detail

decodeCiphertext

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

encodePlaintext

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

getKeyExchangeAlgorithm

protected abstract short getKeyExchangeAlgorithm()

init

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