Package org.apache.parquet.crypto
Class AesGcmEncryptor
- java.lang.Object
-
- org.apache.parquet.crypto.AesCipher
-
- org.apache.parquet.crypto.AesGcmEncryptor
-
- All Implemented Interfaces:
org.apache.parquet.format.BlockCipher.Encryptor
public class AesGcmEncryptor extends AesCipher implements org.apache.parquet.format.BlockCipher.Encryptor
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]encrypt(boolean writeLength, byte[] plainText, byte[] AAD)byte[]encrypt(boolean writeLength, byte[] plainText, byte[] nonce, byte[] AAD)byte[]encrypt(byte[] plainText, byte[] AAD)-
Methods inherited from class org.apache.parquet.crypto.AesCipher
createFooterAAD, createModuleAAD, quickUpdatePageAAD
-
-
-
-
Method Detail
-
encrypt
public byte[] encrypt(byte[] plainText, byte[] AAD)- Specified by:
encryptin interfaceorg.apache.parquet.format.BlockCipher.Encryptor
-
encrypt
public byte[] encrypt(boolean writeLength, byte[] plainText, byte[] AAD)
-
encrypt
public byte[] encrypt(boolean writeLength, byte[] plainText, byte[] nonce, byte[] AAD)
-
-