Package org.bouncycastle.crypto.fips
Class FipsInputAEADDecryptor<T extends Parameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsInputAEADDecryptor<T>
- Type Parameters:
T- the parameters type associated with the final implementation of this decryptor.
- All Implemented Interfaces:
AADProcessor,InputAEADDecryptor<T>,InputDecryptor<T>
public abstract class FipsInputAEADDecryptor<T extends Parameters>
extends Object
implements InputAEADDecryptor<T>
Base class for the approved mode InputAEADDecryptor 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 InputStreamReturn a stream which will decrypt what it reads from the stream in and pass it through.abstract byte[]getMAC()Return the final value of AEAD cipher's MAC.abstract TReturn the parameters for this decryptor.
-
Method Details
-
getParameters
Description copied from interface:InputDecryptorReturn the parameters for this decryptor.- Specified by:
getParametersin interfaceInputDecryptor<T extends Parameters>- Returns:
- the decryptor's parameters.
-
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:InputDecryptorReturn a stream which will decrypt what it reads from the stream in and pass it through.- Specified by:
getDecryptingStreamin interfaceInputDecryptor<T extends Parameters>- Parameters:
in- the source of encrypted data..- Returns:
- a stream which produces decrypted data based on bytes read from in..
-
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.
-