Package org.bouncycastle.crypto.fips
Class FipsOutputAEADEncryptor<T extends FipsParameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsOutputEncryptor<T>
org.bouncycastle.crypto.fips.FipsOutputAEADEncryptor<T>
- Type Parameters:
T- the parameters type associated with the final implementation of this key encryptor.
- All Implemented Interfaces:
AADProcessor,OutputAEADEncryptor<T>,OutputCipher<T>,OutputEncryptor<T>
public abstract class FipsOutputAEADEncryptor<T extends FipsParameters>
extends FipsOutputEncryptor<T>
implements OutputAEADEncryptor<T>
Base class for the approved mode OutputAEADEncryptor implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract UpdateOutputStreamReturn a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.abstract CipherOutputStreamReturn a stream which will encrypt it's input writing the results to out.abstract byte[]getMAC()Return the final value of AEAD cipher's MAC.Methods inherited from class org.bouncycastle.crypto.fips.FipsOutputEncryptor
getParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.OutputCipher
getMaxOutputSize, getParameters, getUpdateOutputSize
-
Method Details
-
getAADStream
Description copied from interface:AADProcessorReturn a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.- Specified by:
getAADStreamin interfaceAADProcessor- Returns:
- a stream for collecting associated data.
-
getEncryptingStream
Description copied from interface:OutputEncryptorReturn a stream which will encrypt it's input writing the results to out.- Specified by:
getEncryptingStreamin interfaceOutputEncryptor<T extends FipsParameters>- Specified by:
getEncryptingStreamin classFipsOutputEncryptor<T extends FipsParameters>- Parameters:
out- the output stream to collect the encrypted data in.- Returns:
- a stream for writing the original plain-text data.
-
getMAC
public abstract byte[] getMAC()Description copied from interface:AADProcessorReturn the final value of AEAD cipher's MAC.- Specified by:
getMACin interfaceAADProcessor- Returns:
- MAC value for the AEAD cipher.
-