org.bouncycastle.crypto.tls

Class TlsCipherSuite

Known Direct Subclasses:
TlsBlockCipherCipherSuite, TlsNullCipherSuite

public abstract class TlsCipherSuite
extends java.lang.Object

A generic class for ciphersuites in TLS 1.0.

Field Summary

protected static short
KE_DHE_DSS
protected static short
KE_DHE_DSS_EXPORT
protected static short
KE_DHE_RSA
protected static short
KE_DHE_RSA_EXPORT
protected static short
KE_DH_DSS
protected static short
KE_DH_RSA
protected static short
KE_DH_anon
protected static short
KE_RSA
protected static short
KE_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 short
getKeyExchangeAlgorithm()
protected abstract void
init(byte[] ms, byte[] cr, byte[] sr)

Field Details

KE_DHE_DSS

protected static final short KE_DHE_DSS
Field Value:
3

KE_DHE_DSS_EXPORT

protected static final short KE_DHE_DSS_EXPORT
Field Value:
4

KE_DHE_RSA

protected static final short KE_DHE_RSA
Field Value:
5

KE_DHE_RSA_EXPORT

protected static final short KE_DHE_RSA_EXPORT
Field Value:
6

KE_DH_DSS

protected static final short KE_DH_DSS
Field Value:
7

KE_DH_RSA

protected static final short KE_DH_RSA
Field Value:
8

KE_DH_anon

protected static final short KE_DH_anon
Field Value:
9

KE_RSA

protected static final short KE_RSA
Field Value:
1

KE_RSA_EXPORT

protected static final short KE_RSA_EXPORT
Field Value:
2

Method Details

decodeCiphertext

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

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)