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:
- name of the cipher suite
- is the cipher suite exportable or not
- name of the key exchange algorithm
- name of the cipher algorithm
- name of the hash algorithm
- a 2 byte identifier for the cipher suite
- the number of bytes that are used for generating the write keys
- the number of bytes actually fed into the encryption algorithm
- IV size (CBC mode)
-
BLOCK
- Cipher type block cipher.
-
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
- Not implemented yet.
-
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
- Not implemented yet.
-
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
- Not implemented yet.
-
SSL_DH_anon_WITH_DES_CBC_SHA
- Not implemented yet.
-
SSL_DH_anon_WITH_RC4_MD5
- Not implemented yet.
-
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
- Exportable cipher suite.
-
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DH_DSS_WITH_DES_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
- Exportable cipher suite.
-
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DH_RSA_WITH_DES_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
- Exportable cipher suite.
-
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DHE_DSS_WITH_DES_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
- Exportable cipher suite.
-
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_DHE_RSA_WITH_DES_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
- Not implemented yet.
-
SSL_FORTEZZA_DMS_WITH_NULL_SHA
- Not implemented yet.
-
SSL_NULL_WITH_NULL_NULL
- Used for negotiating a cipher suite.
-
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
- Exportable cipher suite.
-
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
- Exportable cipher suite.
-
SSL_RSA_EXPORT_WITH_RC4_40_MD5
- Exportable cipher suite.
-
SSL_RSA_WITH_3DES_EDE_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_RSA_WITH_DES_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_RSA_WITH_IDEA_CBC_SHA
- Non-Exportable cipher suite.
-
SSL_RSA_WITH_NULL_MD5
- Does not encrypt data but uses MD5 for the MAC.
-
SSL_RSA_WITH_NULL_SHA
- Does not encrypt data but uses SHA for the MAC.
-
SSL_RSA_WITH_RC4_MD5
- Non-Exportable cipher suite.
-
SSL_RSA_WITH_RC4_SHA
- Non-Exportable cipher suite.
-
STREAM
- Cipher type stream cipher.
-
cipherAlgorithm()
- Returns the name of the encryption algorithm.
-
expandedKeyMaterial()
- Returns the number of bytes actually fed into the encryption algorithm.
-
getCipherType()
- Returns the type of the cipher (STREAM or BLOCK).
-
getDefault()
- Returns an array with all implemented cipher suites.
-
getID()
- Returns the identifier of this CipherSuite.
-
getKeyExchangeAlgorithm()
- Returns the name of the key exchange algorithm.
-
getKeySizeLimit()
- Returns the key size limit for certificates.
-
getName()
- Returns the name of this CipherSuite.
-
hashSize()
- Returns the hash size for the given MessageDigest.
-
isExportable()
- Returns
true
if this cipher suite is exportable.
-
IVSize()
- Returns the number of bytes that are used for the initialization vector.
-
keyMaterial()
- Returns the number of bytes that are used for generating the write keys.
-
macAlgorithm()
- Returns the name of the MAC algorithm.
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.
SSL_RSA_WITH_NULL_MD5
public static final CipherSuite SSL_RSA_WITH_NULL_MD5
- Does not encrypt data but uses MD5 for the MAC.
SSL_RSA_WITH_NULL_SHA
public static final CipherSuite SSL_RSA_WITH_NULL_SHA
- Does not encrypt data but uses SHA for the MAC.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
public static final CipherSuite SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
- Not implemented yet.
SSL_DH_anon_WITH_RC4_MD5
public static final CipherSuite SSL_DH_anon_WITH_RC4_MD5
- Not implemented yet.
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
public static final CipherSuite SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
- Not implemented yet.
SSL_DH_anon_WITH_DES_CBC_SHA
public static final CipherSuite SSL_DH_anon_WITH_DES_CBC_SHA
- Not implemented yet.
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
public static final CipherSuite SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
- Not implemented yet.
SSL_FORTEZZA_DMS_WITH_NULL_SHA
public static final CipherSuite SSL_FORTEZZA_DMS_WITH_NULL_SHA
- Not implemented yet.
SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
public static final CipherSuite SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
- Not implemented yet.
STREAM
public static final int STREAM
- Cipher type stream cipher.
BLOCK
public static final int BLOCK
- Cipher type block cipher.
getName
public String getName()
- Returns the name of this CipherSuite.
- Returns:
- the name of this CipherSuite
getID
public byte[] getID()
- Returns the identifier of this CipherSuite.
- Returns:
- the identifier of this CipherSuite (2 bytes)
getCipherType
public int getCipherType()
- Returns the type of the cipher (STREAM or BLOCK).
- Returns:
- the type of the cipher
cipherAlgorithm
public String cipherAlgorithm()
- Returns the name of the encryption algorithm.
- Returns:
- the name of the encryption algorithm
macAlgorithm
public String macAlgorithm()
- Returns the name of the MAC algorithm.
- Returns:
- the name of the MAC algorithm
getKeyExchangeAlgorithm
public String getKeyExchangeAlgorithm()
- Returns the name of the key exchange algorithm.
- Returns:
- the name of the key exchange algorithm
isExportable
public boolean isExportable()
- Returns
true
if this cipher suite is exportable.
- Returns:
-
true
if this cipher suite is exportable
getKeySizeLimit
public int getKeySizeLimit()
- Returns the key size limit for certificates.
- Returns:
- the key size limit for this CipherSuite
hashSize
public int hashSize()
- Returns the hash size for the given MessageDigest.
- Returns:
- the key size limit for this CipherSuite
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
expandedKeyMaterial
public int expandedKeyMaterial()
- Returns the number of bytes actually fed into the encryption algorithm.
- Returns:
- the number of bytes for the keys
IVSize
public int IVSize()
- Returns the number of bytes that are used for the initialization vector.
- Returns:
- the number of bytes for the IV
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