Interface Decryptor
- All Known Implementing Classes:
AESDecryptor
,CommonsCryptoAESDecryptor
Decryptors apply a cipher to an InputStream to recover plaintext.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a stream for decryptionint
Get the cipher's internal block sizeint
Get the expected length for the initialization vectorvoid
reset()
Reset state, reinitialize with the key and ivvoid
setIv
(byte[] iv) Set the initialization vectorvoid
Set the secret key
-
Method Details
-
setKey
Set the secret key -
getIvLength
int getIvLength()Get the expected length for the initialization vector- Returns:
- the expected length for the initialization vector
-
getBlockSize
int getBlockSize()Get the cipher's internal block size- Returns:
- the cipher's internal block size
-
setIv
Set the initialization vector -
createDecryptionStream
Create a stream for decryption -
reset
void reset()Reset state, reinitialize with the key and iv
-