Package org.apache.parquet.crypto
Class AesCtrEncryptor
- java.lang.Object
-
- org.apache.parquet.crypto.AesCipher
-
- org.apache.parquet.crypto.AesCtrEncryptor
-
- All Implemented Interfaces:
BlockCipher.Encryptor
public class AesCtrEncryptor extends AesCipher implements BlockCipher.Encryptor
-
-
Field Summary
-
Fields inherited from class org.apache.parquet.crypto.AesCipher
aesKey, CHUNK_LENGTH, cipher, CTR_IV_LENGTH, 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 interfaceBlockCipher.Encryptor
-
encrypt
public byte[] encrypt(boolean writeLength, byte[] plainText, byte[] AAD)
-
encrypt
public byte[] encrypt(boolean writeLength, byte[] plainText, byte[] nonce, byte[] AAD)
-
-