Package org.bouncycastle.crypto.fips
Class FipsAEADOperatorFactory<T extends FipsParameters>
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsAEADOperatorFactory<T>
-
- Type Parameters:
T
- the parameters type associated with the final implementation of this factory.
- All Implemented Interfaces:
AEADOperatorFactory<T>
- Direct Known Subclasses:
FipsAES.AEADOperatorFactory
public abstract class FipsAEADOperatorFactory<T extends FipsParameters> extends java.lang.Object implements AEADOperatorFactory<T>
Base class for the approved mode AEADOperatorFactory implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FipsInputAEADDecryptor<T>
createInputAEADDecryptor(SymmetricKey key, T parameter)
Create an object for decrypting input and handling AAD data.abstract FipsOutputAEADDecryptor<T>
createOutputAEADDecryptor(SymmetricKey key, T parameter)
Create an object for decrypting output and handling AAD data.abstract FipsOutputAEADEncryptor<T>
createOutputAEADEncryptor(SymmetricKey key, T parameter)
Create an object for encrypting output and handling AAD data.
-
-
-
Method Detail
-
createOutputAEADEncryptor
public abstract FipsOutputAEADEncryptor<T> createOutputAEADEncryptor(SymmetricKey key, T parameter)
Description copied from interface:AEADOperatorFactory
Create an object for encrypting output and handling AAD data.- Specified by:
createOutputAEADEncryptor
in interfaceAEADOperatorFactory<T extends FipsParameters>
- Parameters:
key
- the key to use to set up the encryptor.parameter
- any additional parameters required to set up the encryptor.- Returns:
- an AEAD encryptor which can be used wrap an output stream.
-
createOutputAEADDecryptor
public abstract FipsOutputAEADDecryptor<T> createOutputAEADDecryptor(SymmetricKey key, T parameter)
Description copied from interface:AEADOperatorFactory
Create an object for decrypting output and handling AAD data.- Specified by:
createOutputAEADDecryptor
in interfaceAEADOperatorFactory<T extends FipsParameters>
- Parameters:
key
- the key to use to set up the decryptor.parameter
- any additional parameters required to set up the decryptor.- Returns:
- an AEAD decryptor which can be used wrap an output stream.
-
createInputAEADDecryptor
public abstract FipsInputAEADDecryptor<T> createInputAEADDecryptor(SymmetricKey key, T parameter)
Description copied from interface:AEADOperatorFactory
Create an object for decrypting input and handling AAD data.- Specified by:
createInputAEADDecryptor
in interfaceAEADOperatorFactory<T extends FipsParameters>
- Parameters:
key
- the key to use to set up the decryptor.parameter
- any additional parameters required to set up the decryptor.- Returns:
- an AEAD decryptor which can be used wrap an input stream.
-
-