Class AESDecryptor
java.lang.Object
org.apache.hadoop.hbase.io.crypto.aes.AESDecryptor
- All Implemented Interfaces:
Decryptor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a stream for decryptionint
Get the cipher's internal block size(package private) Cipher
int
Get the expected length for the initialization vectorprotected void
init()
void
reset()
Reset state, reinitialize with the key and ivvoid
setIv
(byte[] iv) Set the initialization vectorvoid
Set the secret key
-
Field Details
-
cipher
-
key
-
iv
-
initialized
-
-
Constructor Details
-
AESDecryptor
-
-
Method Details
-
getCipher
-
setKey
Description copied from interface:Decryptor
Set the secret key -
getIvLength
Description copied from interface:Decryptor
Get the expected length for the initialization vector- Specified by:
getIvLength
in interfaceDecryptor
- Returns:
- the expected length for the initialization vector
-
getBlockSize
Description copied from interface:Decryptor
Get the cipher's internal block size- Specified by:
getBlockSize
in interfaceDecryptor
- Returns:
- the cipher's internal block size
-
setIv
Description copied from interface:Decryptor
Set the initialization vector -
createDecryptionStream
Description copied from interface:Decryptor
Create a stream for decryption- Specified by:
createDecryptionStream
in interfaceDecryptor
-
reset
Description copied from interface:Decryptor
Reset state, reinitialize with the key and iv -
init
-