public static interface BlockCipher.Decryptor
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] lengthAndCiphertext,
byte[] AAD)
Decrypts the ciphertext.
|
ByteBuffer |
decrypt(ByteBuffer from,
byte[] AAD)
Convenience decryption method that reads the length and ciphertext from a ByteBuffer
|
byte[] |
decrypt(InputStream from,
byte[] AAD)
Convenience decryption method that reads the length and ciphertext from the input stream.
|
byte[] decrypt(byte[] lengthAndCiphertext,
byte[] AAD)
lengthAndCiphertext - - The first 4 bytes of the input are the ciphertext length (little endian int).
The ciphertext starts at offset 4 and fills up the rest of the input byte array.
The ciphertext includes the nonce and (in case of GCM cipher) the tag, as detailed in the
Parquet Modular Encryption specification.AAD - - Additional Authenticated Data for the decryption (ignored in case of CTR cipher)ByteBuffer decrypt(ByteBuffer from, byte[] AAD)
from - ByteBuffer with length and ciphertext.AAD - - Additional Authenticated Data for the decryption (ignored in case of CTR cipher)byte[] decrypt(InputStream from, byte[] AAD) throws IOException
from - Input stream with length and ciphertext.AAD - - Additional Authenticated Data for the decryption (ignored in case of CTR cipher)IOException - - Stream I/O problemsCopyright © 2024 The Apache Software Foundation. All rights reserved.