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 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 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
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.
-
getDecryptingStream
Description copied from interface:OutputDecryptorReturn a stream which will decrypt it's input writing the results to out.- Specified by:
getDecryptingStreamin interfaceOutputDecryptor<T extends FipsParameters>- Specified by:
getDecryptingStreamin 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:AADProcessorReturn the final value of AEAD cipher's MAC.- Specified by:
getMACin interfaceAADProcessor- Returns:
- MAC value for the AEAD cipher.
-