Package org.bouncycastle.crypto.tls
Class DefaultTlsCipherFactory
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsCipherFactory
-
- org.bouncycastle.crypto.tls.DefaultTlsCipherFactory
-
- All Implemented Interfaces:
TlsCipherFactory
public class DefaultTlsCipherFactory extends AbstractTlsCipherFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultTlsCipherFactory()
-
Method Summary
-
-
-
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 interfaceTlsCipherFactory
- Overrides:
createCipher
in classAbstractTlsCipherFactory
- Throws:
java.io.IOException
-
createAESCipher
protected TlsBlockCipher createAESCipher(TlsContext context, int cipherKeySize, int macAlgorithm) 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
-
createChaCha20Poly1305
protected TlsCipher createChaCha20Poly1305(TlsContext context) throws java.io.IOException
- Throws:
java.io.IOException
-
createCipher_AES_CCM
protected TlsAEADCipher createCipher_AES_CCM(TlsContext context, int cipherKeySize, int macSize) 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
-
createCipher_AES_OCB
protected TlsAEADCipher createCipher_AES_OCB(TlsContext context, int cipherKeySize, int macSize) throws java.io.IOException
- Throws:
java.io.IOException
-
createCipher_Camellia_GCM
protected TlsAEADCipher createCipher_Camellia_GCM(TlsContext context, int cipherKeySize, int macSize) throws java.io.IOException
- Throws:
java.io.IOException
-
createDESedeCipher
protected TlsBlockCipher createDESedeCipher(TlsContext context, 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
-
createSEEDCipher
protected TlsBlockCipher createSEEDCipher(TlsContext context, int macAlgorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
createAESEngine
protected BlockCipher createAESEngine()
-
createCamelliaEngine
protected BlockCipher createCamelliaEngine()
-
createAESBlockCipher
protected BlockCipher createAESBlockCipher()
-
createAEADBlockCipher_AES_CCM
protected AEADBlockCipher createAEADBlockCipher_AES_CCM()
-
createAEADBlockCipher_AES_GCM
protected AEADBlockCipher createAEADBlockCipher_AES_GCM()
-
createAEADBlockCipher_AES_OCB
protected AEADBlockCipher createAEADBlockCipher_AES_OCB()
-
createAEADBlockCipher_Camellia_GCM
protected AEADBlockCipher createAEADBlockCipher_Camellia_GCM()
-
createCamelliaBlockCipher
protected BlockCipher createCamelliaBlockCipher()
-
createDESedeBlockCipher
protected BlockCipher createDESedeBlockCipher()
-
createRC4StreamCipher
protected StreamCipher createRC4StreamCipher()
-
createSEEDBlockCipher
protected BlockCipher createSEEDBlockCipher()
-
createHMACDigest
protected Digest createHMACDigest(int macAlgorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
-