Package org.bouncycastle.crypto.fips
Class FipsOutputEncryptor<T extends Parameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsOutputEncryptor<T>
- Type Parameters:
T
- the parameters type associated with the final implementation of this encryptor.
- All Implemented Interfaces:
OutputCipher<T>
,OutputEncryptor<T>
- Direct Known Subclasses:
FipsOutputAEADEncryptor
public abstract class FipsOutputEncryptor<T extends Parameters>
extends Object
implements OutputEncryptor<T>
Base class for the approved mode OutputEncryptor implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract CipherOutputStream
Return a stream which will encrypt it's input writing the results to out.abstract T
Return the parameters for this cipher.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, getUpdateOutputSize
-
Method Details
-
getParameters
Description copied from interface:OutputCipher
Return the parameters for this cipher.- Specified by:
getParameters
in interfaceOutputCipher<T extends Parameters>
- Returns:
- the cipher's parameters.
-
getEncryptingStream
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 Parameters>
- Parameters:
out
- the output stream to collect the encrypted data in.- Returns:
- a stream for writing the original plain-text data.
-