Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class DefaultTlsCipherFactory

java.lang.Object
  extended by org.bouncycastle.crypto.tls.AbstractTlsCipherFactory
      extended by org.bouncycastle.crypto.tls.DefaultTlsCipherFactory
All Implemented Interfaces:
TlsCipherFactory

public class DefaultTlsCipherFactory
extends AbstractTlsCipherFactory


Constructor Summary
DefaultTlsCipherFactory()
           
 
Method Summary
protected  AEADBlockCipher createAEADBlockCipher_AES_GCM()
           
protected  BlockCipher createAESBlockCipher()
           
protected  TlsBlockCipher createAESCipher(TlsContext context, int cipherKeySize, int macAlgorithm)
           
protected  BlockCipher createCamelliaBlockCipher()
           
protected  TlsBlockCipher createCamelliaCipher(TlsContext context, int cipherKeySize, int macAlgorithm)
           
protected  TlsAEADCipher createCipher_AES_GCM(TlsContext context, int cipherKeySize, int macSize)
           
 TlsCipher createCipher(TlsContext context, int encryptionAlgorithm, int macAlgorithm)
          See enumeration classes EncryptionAlgorithm, MACAlgorithm for appropriate argument values
protected  BlockCipher createDESedeBlockCipher()
           
protected  TlsBlockCipher createDESedeCipher(TlsContext context, int macAlgorithm)
           
protected  Digest createHMACDigest(int macAlgorithm)
           
protected  TlsNullCipher createNullCipher(TlsContext context, int macAlgorithm)
           
protected  TlsStreamCipher createRC4Cipher(TlsContext context, int cipherKeySize, int macAlgorithm)
           
protected  StreamCipher createRC4StreamCipher()
           
protected  BlockCipher createSEEDBlockCipher()
           
protected  TlsBlockCipher createSEEDCipher(TlsContext context, int macAlgorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTlsCipherFactory

public DefaultTlsCipherFactory()
Method Detail

createCipher

public TlsCipher createCipher(TlsContext context,
                              int encryptionAlgorithm,
                              int macAlgorithm)
                       throws java.io.IOException
Description copied from interface: TlsCipherFactory
See enumeration classes EncryptionAlgorithm, MACAlgorithm for appropriate argument values

Specified by:
createCipher in interface TlsCipherFactory
Overrides:
createCipher in class AbstractTlsCipherFactory
Throws:
java.io.IOException

createAESCipher

protected TlsBlockCipher createAESCipher(TlsContext context,
                                         int cipherKeySize,
                                         int macAlgorithm)
                                  throws java.io.IOException
Throws:
java.io.IOException

createCipher_AES_GCM

protected TlsAEADCipher createCipher_AES_GCM(TlsContext context,
                                             int cipherKeySize,
                                             int macSize)
                                      throws java.io.IOException
Throws:
java.io.IOException

createCamelliaCipher

protected TlsBlockCipher createCamelliaCipher(TlsContext context,
                                              int cipherKeySize,
                                              int macAlgorithm)
                                       throws java.io.IOException
Throws:
java.io.IOException

createNullCipher

protected TlsNullCipher createNullCipher(TlsContext context,
                                         int macAlgorithm)
                                  throws java.io.IOException
Throws:
java.io.IOException

createRC4Cipher

protected TlsStreamCipher createRC4Cipher(TlsContext context,
                                          int cipherKeySize,
                                          int macAlgorithm)
                                   throws java.io.IOException
Throws:
java.io.IOException

createDESedeCipher

protected TlsBlockCipher createDESedeCipher(TlsContext context,
                                            int macAlgorithm)
                                     throws java.io.IOException
Throws:
java.io.IOException

createSEEDCipher

protected TlsBlockCipher createSEEDCipher(TlsContext context,
                                          int macAlgorithm)
                                   throws java.io.IOException
Throws:
java.io.IOException

createRC4StreamCipher

protected StreamCipher createRC4StreamCipher()

createAESBlockCipher

protected BlockCipher createAESBlockCipher()

createAEADBlockCipher_AES_GCM

protected AEADBlockCipher createAEADBlockCipher_AES_GCM()

createCamelliaBlockCipher

protected BlockCipher createCamelliaBlockCipher()

createDESedeBlockCipher

protected BlockCipher createDESedeBlockCipher()

createSEEDBlockCipher

protected BlockCipher createSEEDBlockCipher()

createHMACDigest

protected Digest createHMACDigest(int macAlgorithm)
                           throws java.io.IOException
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.49