Package org.cryptacular.adapter
Interface BlockCipherAdapter
- All Superinterfaces:
CipherAdapter
- All Known Implementing Classes:
AEADBlockCipherAdapter
,BufferedBlockCipherAdapter
Adapter for all block cipher types.
- Author:
- Middleware Services
-
Method Summary
Modifier and TypeMethodDescriptionint
doFinal
(byte[] out, int outOff) Finish the encryption/decryption operation (e.g.int
getOutputSize
(int len) Gets the size of the output buffer required to hold the output of an input buffer of the given size.Methods inherited from interface org.cryptacular.adapter.CipherAdapter
init, processBytes, reset
-
Method Details
-
getOutputSize
int getOutputSize(int len) Gets the size of the output buffer required to hold the output of an input buffer of the given size.- Parameters:
len
- Length of input buffer.- Returns:
- Size of output buffer.
-
doFinal
Finish the encryption/decryption operation (e.g. apply padding).- Parameters:
out
- Output buffer to receive final processing output.outOff
- Offset into output buffer where processed data should start.- Returns:
- Number of bytes written to output buffer.
- Throws:
CryptoException
- on underlying cipher finalization errors.
-