Package org.apache.parquet.crypto
Class AesGcmDecryptor
java.lang.Object
org.apache.parquet.crypto.AesCipher
org.apache.parquet.crypto.AesGcmDecryptor
- All Implemented Interfaces:
org.apache.parquet.format.BlockCipher.Decryptor
public class AesGcmDecryptor
extends AesCipher
implements org.apache.parquet.format.BlockCipher.Decryptor
-
Field Summary
Fields inherited from class org.apache.parquet.crypto.AesCipher
aesKey, CHUNK_LENGTH, cipher, CTR_IV_LENGTH, CTR_RANDOM_IV_SAME_KEY_MAX_OPS, GCM_RANDOM_IV_SAME_KEY_MAX_OPS, GCM_TAG_LENGTH, GCM_TAG_LENGTH_BITS, localNonce, NONCE_LENGTH, randomGenerator, SIZE_LENGTH -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(byte[] lengthAndCiphertext, byte[] AAD) byte[]decrypt(byte[] ciphertext, int cipherTextOffset, int cipherTextLength, byte[] AAD) byte[]decrypt(InputStream from, byte[] AAD) decrypt(ByteBuffer ciphertext, byte[] AAD) Methods inherited from class org.apache.parquet.crypto.AesCipher
createFooterAAD, createModuleAAD, quickUpdatePageAAD
-
Method Details
-
decrypt
public byte[] decrypt(byte[] lengthAndCiphertext, byte[] AAD) - Specified by:
decryptin interfaceorg.apache.parquet.format.BlockCipher.Decryptor
-
decrypt
public byte[] decrypt(byte[] ciphertext, int cipherTextOffset, int cipherTextLength, byte[] AAD) -
decrypt
- Specified by:
decryptin interfaceorg.apache.parquet.format.BlockCipher.Decryptor
-
decrypt
- Specified by:
decryptin interfaceorg.apache.parquet.format.BlockCipher.Decryptor- Throws:
IOException
-