Package org.signal.libsignal.crypto
Class Aes256GcmEncryption
- java.lang.Object
-
- org.signal.libsignal.crypto.Aes256GcmEncryption
-
- All Implemented Interfaces:
NativeHandleGuard.Owner
public class Aes256GcmEncryption extends java.lang.Object implements NativeHandleGuard.Owner
-
-
Constructor Summary
Constructors Constructor Description Aes256GcmEncryption(byte[] key, byte[] nonce, byte[] associatedData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]computeTag()voidencrypt(byte[] plaintext)voidencrypt(byte[] plaintext, int offset, int length)protected voidfinalize()longunsafeNativeHandleWithoutGuard()
-
-
-
Constructor Detail
-
Aes256GcmEncryption
public Aes256GcmEncryption(byte[] key, byte[] nonce, byte[] associatedData) throws InvalidKeyException- Throws:
InvalidKeyException
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
encrypt
public void encrypt(byte[] plaintext, int offset, int length)
-
encrypt
public void encrypt(byte[] plaintext)
-
computeTag
public byte[] computeTag()
-
-