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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract UpdateOutputStream
getAADStream()
Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.abstract CipherOutputStream
getEncryptingStream(java.io.OutputStream out)
Return 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
getParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.OutputCipher
getMaxOutputSize, getParameters, getUpdateOutputSize
-
-
-
-
Method Detail
-
getAADStream
public abstract UpdateOutputStream getAADStream()
Description copied from interface:AADProcessor
Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.- Specified by:
getAADStream
in interfaceAADProcessor
- Returns:
- a stream for collecting associated data.
-
getEncryptingStream
public abstract CipherOutputStream getEncryptingStream(java.io.OutputStream out)
Description copied from interface:OutputEncryptor
Return a stream which will encrypt it's input writing the results to out.- Specified by:
getEncryptingStream
in interfaceOutputEncryptor<T extends FipsParameters>
- Specified by:
getEncryptingStream
in 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:AADProcessor
Return the final value of AEAD cipher's MAC.- Specified by:
getMAC
in interfaceAADProcessor
- Returns:
- MAC value for the AEAD cipher.
-
-