org.bouncycastle.crypto.tls
Class TlsCipherSuite
java.lang.Object
org.bouncycastle.crypto.tls.TlsCipherSuite
- Direct Known Subclasses:
- TlsBlockCipherCipherSuite, TlsNullCipherSuite
public abstract class TlsCipherSuite
- extends java.lang.Object
A generic class for ciphersuites in TLS 1.0.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KE_RSA
protected static final short KE_RSA
- See Also:
- Constant Field Values
KE_RSA_EXPORT
protected static final short KE_RSA_EXPORT
- See Also:
- Constant Field Values
KE_DHE_DSS
protected static final short KE_DHE_DSS
- See Also:
- Constant Field Values
KE_DHE_DSS_EXPORT
protected static final short KE_DHE_DSS_EXPORT
- See Also:
- Constant Field Values
KE_DHE_RSA
protected static final short KE_DHE_RSA
- See Also:
- Constant Field Values
KE_DHE_RSA_EXPORT
protected static final short KE_DHE_RSA_EXPORT
- See Also:
- Constant Field Values
KE_DH_DSS
protected static final short KE_DH_DSS
- See Also:
- Constant Field Values
KE_DH_RSA
protected static final short KE_DH_RSA
- See Also:
- Constant Field Values
KE_DH_anon
protected static final short KE_DH_anon
- See Also:
- Constant Field Values
TlsCipherSuite
public TlsCipherSuite()
init
protected abstract void init(byte[] ms,
byte[] cr,
byte[] sr)
encodePlaintext
protected abstract byte[] encodePlaintext(short type,
byte[] plaintext,
int offset,
int len)
decodeCiphertext
protected abstract byte[] decodeCiphertext(short type,
byte[] plaintext,
int offset,
int len,
TlsProtocolHandler handler)
throws java.io.IOException
- Throws:
java.io.IOException
getKeyExchangeAlgorithm
protected abstract short getKeyExchangeAlgorithm()