All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.security.ssl.CipherSuite

java.lang.Object
   |
   +----iaik.security.ssl.CipherSuite

public class CipherSuite
extends Object
A CipherSuite defines a cipher specification supported in SSL Version 3.0. The following parameters are defined:


Variable Index

 o BLOCK
Cipher type block cipher.
 o SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
Not implemented yet.
 o SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
Not implemented yet.
 o SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
Not implemented yet.
 o SSL_DH_anon_WITH_DES_CBC_SHA
Not implemented yet.
 o SSL_DH_anon_WITH_RC4_MD5
Not implemented yet.
 o SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite.
 o SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DH_DSS_WITH_DES_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite.
 o SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DH_RSA_WITH_DES_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite.
 o SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DHE_DSS_WITH_DES_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite.
 o SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite.
 o SSL_DHE_RSA_WITH_DES_CBC_SHA
Non-Exportable cipher suite.
 o SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
Not implemented yet.
 o SSL_FORTEZZA_DMS_WITH_NULL_SHA
Not implemented yet.
 o SSL_NULL_WITH_NULL_NULL
Used for negotiating a cipher suite.
 o SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite.
 o SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
Exportable cipher suite.
 o SSL_RSA_EXPORT_WITH_RC4_40_MD5
Exportable cipher suite.
 o SSL_RSA_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite.
 o SSL_RSA_WITH_DES_CBC_SHA
Non-Exportable cipher suite.
 o SSL_RSA_WITH_IDEA_CBC_SHA
Non-Exportable cipher suite.
 o SSL_RSA_WITH_NULL_MD5
Does not encrypt data but uses MD5 for the MAC.
 o SSL_RSA_WITH_NULL_SHA
Does not encrypt data but uses SHA for the MAC.
 o SSL_RSA_WITH_RC4_MD5
Non-Exportable cipher suite.
 o SSL_RSA_WITH_RC4_SHA
Non-Exportable cipher suite.
 o STREAM
Cipher type stream cipher.

Method Index

 o cipherAlgorithm()
Returns the name of the encryption algorithm.
 o expandedKeyMaterial()
Returns the number of bytes actually fed into the encryption algorithm.
 o getCipherType()
Returns the type of the cipher (STREAM or BLOCK).
 o getDefault()
Returns an array with all implemented cipher suites.
 o getID()
Returns the identifier of this CipherSuite.
 o getKeyExchangeAlgorithm()
Returns the name of the key exchange algorithm.
 o getKeySizeLimit()
Returns the key size limit for certificates.
 o getName()
Returns the name of this CipherSuite.
 o hashSize()
Returns the hash size for the given MessageDigest.
 o isExportable()
Returns true if this cipher suite is exportable.
 o IVSize()
Returns the number of bytes that are used for the initialization vector.
 o keyMaterial()
Returns the number of bytes that are used for generating the write keys.
 o macAlgorithm()
Returns the name of the MAC algorithm.

Variables

 o SSL_NULL_WITH_NULL_NULL
 public static final CipherSuite SSL_NULL_WITH_NULL_NULL
Used for negotiating a cipher suite. Does neither encrypt data nor uses a MAC.

 o SSL_RSA_WITH_NULL_MD5
 public static final CipherSuite SSL_RSA_WITH_NULL_MD5
Does not encrypt data but uses MD5 for the MAC.

 o SSL_RSA_WITH_NULL_SHA
 public static final CipherSuite SSL_RSA_WITH_NULL_SHA
Does not encrypt data but uses SHA for the MAC.

 o SSL_RSA_EXPORT_WITH_RC4_40_MD5
 public static final CipherSuite SSL_RSA_EXPORT_WITH_RC4_40_MD5
Exportable cipher suite. Uses a 40 bit key to encrypt data with RC4.

 o SSL_RSA_WITH_RC4_MD5
 public static final CipherSuite SSL_RSA_WITH_RC4_MD5
Non-Exportable cipher suite. Uses a 128 bit key to encrypt data with RC4.

 o SSL_RSA_WITH_RC4_SHA
 public static final CipherSuite SSL_RSA_WITH_RC4_SHA
Non-Exportable cipher suite. Uses a 128 bit key to encrypt data with RC4.

 o SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
 public static final CipherSuite SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
Exportable cipher suite. Uses a 40 bit key to encrypt data with RC2 in CBC mode.

 o SSL_RSA_WITH_IDEA_CBC_SHA
 public static final CipherSuite SSL_RSA_WITH_IDEA_CBC_SHA
Non-Exportable cipher suite. Uses a 128 bit key to encrypt data with IDEA in CBC mode.

 o SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
 public static final CipherSuite SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite. Uses a 40 bit key to encrypt data with DES in CBC mode.

 o SSL_RSA_WITH_DES_CBC_SHA
 public static final CipherSuite SSL_RSA_WITH_DES_CBC_SHA
Non-Exportable cipher suite. Uses a 56 bit key to encrypt data with DES in CBC mode.

 o SSL_RSA_WITH_3DES_EDE_CBC_SHA
 public static final CipherSuite SSL_RSA_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite. Uses a 168 bit key to encrypt data with Triple DES in CBC mode.

 o SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
 public static final CipherSuite SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite. Uses a 40 bit key to encrypt data with DES in CBC mode.

 o SSL_DH_DSS_WITH_DES_CBC_SHA
 public static final CipherSuite SSL_DH_DSS_WITH_DES_CBC_SHA
Non-Exportable cipher suite. Uses a 56 bit key to encrypt data with DES in CBC mode.

 o SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA
 public static final CipherSuite SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite. Uses a 168 bit key to encrypt data with Triple DES in CBC mode.

 o SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
 public static final CipherSuite SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite. Uses a 40 bit key to encrypt data with DES in CBC mode.

 o SSL_DH_RSA_WITH_DES_CBC_SHA
 public static final CipherSuite SSL_DH_RSA_WITH_DES_CBC_SHA
Non-Exportable cipher suite. Uses a 56 bit key to encrypt data with DES in CBC mode.

 o SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA
 public static final CipherSuite SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite. Uses a 168 bit key to encrypt data with Triple DES in CBC mode.

 o SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
 public static final CipherSuite SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite. Uses a 40 bit key to encrypt data with DES in CBC mode.

 o SSL_DHE_DSS_WITH_DES_CBC_SHA
 public static final CipherSuite SSL_DHE_DSS_WITH_DES_CBC_SHA
Non-Exportable cipher suite. Uses a 56 bit key to encrypt data with DES in CBC mode.

 o SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
 public static final CipherSuite SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite. Uses a 168 bit key to encrypt data with Triple DES in CBC mode.

 o SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
 public static final CipherSuite SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
Exportable cipher suite. Uses a 40 bit key to encrypt data with DES in CBC mode.

 o SSL_DHE_RSA_WITH_DES_CBC_SHA
 public static final CipherSuite SSL_DHE_RSA_WITH_DES_CBC_SHA
Non-Exportable cipher suite. Uses a 56 bit key to encrypt data with DES in CBC mode.

 o SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
 public static final CipherSuite SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Non-Exportable cipher suite. Uses a 168 bit key to encrypt data with Triple DES in CBC mode.

 o SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
 public static final CipherSuite SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
Not implemented yet.

 o SSL_DH_anon_WITH_RC4_MD5
 public static final CipherSuite SSL_DH_anon_WITH_RC4_MD5
Not implemented yet.

 o SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
 public static final CipherSuite SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
Not implemented yet.

 o SSL_DH_anon_WITH_DES_CBC_SHA
 public static final CipherSuite SSL_DH_anon_WITH_DES_CBC_SHA
Not implemented yet.

 o SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
 public static final CipherSuite SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
Not implemented yet.

 o SSL_FORTEZZA_DMS_WITH_NULL_SHA
 public static final CipherSuite SSL_FORTEZZA_DMS_WITH_NULL_SHA
Not implemented yet.

 o SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
 public static final CipherSuite SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
Not implemented yet.

 o STREAM
 public static final int STREAM
Cipher type stream cipher.

 o BLOCK
 public static final int BLOCK
Cipher type block cipher.

Methods

 o getName
 public String getName()
Returns the name of this CipherSuite.

Returns:
the name of this CipherSuite
 o getID
 public byte[] getID()
Returns the identifier of this CipherSuite.

Returns:
the identifier of this CipherSuite (2 bytes)
 o getCipherType
 public int getCipherType()
Returns the type of the cipher (STREAM or BLOCK).

Returns:
the type of the cipher
 o cipherAlgorithm
 public String cipherAlgorithm()
Returns the name of the encryption algorithm.

Returns:
the name of the encryption algorithm
 o macAlgorithm
 public String macAlgorithm()
Returns the name of the MAC algorithm.

Returns:
the name of the MAC algorithm
 o getKeyExchangeAlgorithm
 public String getKeyExchangeAlgorithm()
Returns the name of the key exchange algorithm.

Returns:
the name of the key exchange algorithm
 o isExportable
 public boolean isExportable()
Returns true if this cipher suite is exportable.

Returns:
true if this cipher suite is exportable
 o getKeySizeLimit
 public int getKeySizeLimit()
Returns the key size limit for certificates.

Returns:
the key size limit for this CipherSuite
 o hashSize
 public int hashSize()
Returns the hash size for the given MessageDigest.

Returns:
the key size limit for this CipherSuite
 o keyMaterial
 public int keyMaterial()
Returns the number of bytes that are used for generating the write keys.

Returns:
the number of bytes for the keys
 o expandedKeyMaterial
 public int expandedKeyMaterial()
Returns the number of bytes actually fed into the encryption algorithm.

Returns:
the number of bytes for the keys
 o IVSize
 public int IVSize()
Returns the number of bytes that are used for the initialization vector.

Returns:
the number of bytes for the IV
 o getDefault
 public static CipherSuite[] getDefault()
Returns an array with all implemented cipher suites.

Returns:
an array with all implemented cipher suites

All Packages  Class Hierarchy  This Package  Previous  Next  Index