Package org.bouncycastle.crypto
Interface SingleBlockCipher<T extends Parameters>
- Type Parameters:
T- the parameters type for the cipher implemented.
- All Known Subinterfaces:
SingleBlockDecryptor<T>,SingleBlockDecryptorUsingSecureRandom<T>,SingleBlockEncryptor<T>,SingleBlockEncryptorUsingSecureRandom<T>
public interface SingleBlockCipher<T extends Parameters>
Base interface for a cipher only able to handle a single block of data.
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the maximum size of input this cipher can consume.intReturn the size of the output this cipher will produce.Return the parameters for this single block cipher.
-
Method Details
-
getParameters
T getParameters()Return the parameters for this single block cipher.- Returns:
- the cipher's parameters.
-
getInputSize
int getInputSize()Return the maximum size of input this cipher can consume.- Returns:
- maximum size of input in bytes.
-
getOutputSize
int getOutputSize()Return the size of the output this cipher will produce.- Returns:
- size of the output block produced in bytes.
-