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 decryptionintGet the cipher's internal block sizeintGet the expected length for the initialization vectorvoidreset()Reset state, reinitialize with the key and ivvoidsetIv(byte[] iv) Set the initialization vectorvoidSet 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
-