Package org.bouncycastle.crypto.fips
Class FipsOutputAEADDecryptor<T extends FipsParameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsOutputDecryptor<T>
org.bouncycastle.crypto.fips.FipsOutputAEADDecryptor<T>
- Type Parameters:
T
- the parameters type associated with the final implementation of this decryptor.
- All Implemented Interfaces:
AADProcessor
,OutputAEADDecryptor<T>
,OutputCipher<T>
,OutputDecryptor<T>
public abstract class FipsOutputAEADDecryptor<T extends FipsParameters>
extends FipsOutputDecryptor<T>
implements OutputAEADDecryptor<T>
Base class for the approved mode OutputAEADDecryptor implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract UpdateOutputStream
Return a stream to write associated data to in order to have it incorporated into the AEAD cipher's MAC.abstract CipherOutputStream
Return a stream which will decrypt 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.FipsOutputDecryptor
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 Details
-
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.
-
getDecryptingStream
Description copied from interface:OutputDecryptor
Return a stream which will decrypt it's input writing the results to out.- Specified by:
getDecryptingStream
in interfaceOutputDecryptor<T extends FipsParameters>
- Specified by:
getDecryptingStream
in classFipsOutputDecryptor<T extends FipsParameters>
- Parameters:
out
- the output stream to collect the decrypted data in.- Returns:
- a stream for writing the encrypted 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.
-