Package org.bouncycastle.crypto.general
Class Serpent.AEADOperatorFactory
java.lang.Object
org.bouncycastle.crypto.general.Serpent.AEADOperatorFactory
- All Implemented Interfaces:
AEADOperatorFactory<Serpent.AuthParameters>
- Enclosing class:
Serpent
Factory for Serpent AEAD encryption/decryption operators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.bouncycastle.crypto.internal.modes.AEADBlockCiphercreateAEADCipher(boolean forEncryption, SymmetricKey key, Serpent.AuthParameters parameters) createInputAEADDecryptor(SymmetricKey key, Serpent.AuthParameters parameters) Create an object for decrypting input and handling AAD data.createOutputAEADDecryptor(SymmetricKey key, Serpent.AuthParameters parameters) Create an object for decrypting output and handling AAD data.createOutputAEADEncryptor(SymmetricKey key, Serpent.AuthParameters parameters) Create an object for encrypting output and handling AAD data.
-
Constructor Details
-
AEADOperatorFactory
public AEADOperatorFactory()
-
-
Method Details
-
createAEADCipher
protected org.bouncycastle.crypto.internal.modes.AEADBlockCipher createAEADCipher(boolean forEncryption, SymmetricKey key, Serpent.AuthParameters parameters) -
createOutputAEADEncryptor
public OutputAEADEncryptor<Serpent.AuthParameters> createOutputAEADEncryptor(SymmetricKey key, Serpent.AuthParameters parameters) Description copied from interface:AEADOperatorFactoryCreate an object for encrypting output and handling AAD data.- Specified by:
createOutputAEADEncryptorin interfaceAEADOperatorFactory<T extends Parameters>- Parameters:
key- the key to use to set up the encryptor.parameters- any additional parameters required to set up the encryptor.- Returns:
- an AEAD encryptor which can be used wrap an output stream.
-
createInputAEADDecryptor
public InputAEADDecryptor<Serpent.AuthParameters> createInputAEADDecryptor(SymmetricKey key, Serpent.AuthParameters parameters) Description copied from interface:AEADOperatorFactoryCreate an object for decrypting input and handling AAD data.- Specified by:
createInputAEADDecryptorin interfaceAEADOperatorFactory<T extends Parameters>- Parameters:
key- the key to use to set up the decryptor.parameters- any additional parameters required to set up the decryptor.- Returns:
- an AEAD decryptor which can be used wrap an input stream.
-
createOutputAEADDecryptor
public OutputAEADDecryptor<Serpent.AuthParameters> createOutputAEADDecryptor(SymmetricKey key, Serpent.AuthParameters parameters) Description copied from interface:AEADOperatorFactoryCreate an object for decrypting output and handling AAD data.- Specified by:
createOutputAEADDecryptorin interfaceAEADOperatorFactory<T extends Parameters>- Parameters:
key- the key to use to set up the decryptor.parameters- any additional parameters required to set up the decryptor.- Returns:
- an AEAD decryptor which can be used wrap an output stream.
-