Package org.signal.libsignal.crypto
Class Aes256GcmDecryption
- java.lang.Object
-
- org.signal.libsignal.crypto.Aes256GcmDecryption
-
- All Implemented Interfaces:
NativeHandleGuard.Owner
public class Aes256GcmDecryption extends java.lang.Object implements NativeHandleGuard.Owner
-
-
Field Summary
Fields Modifier and Type Field Description static intTAG_SIZE_IN_BYTES
-
Constructor Summary
Constructors Constructor Description Aes256GcmDecryption(byte[] key, byte[] nonce, byte[] associatedData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrypt(byte[] plaintext)voiddecrypt(byte[] plaintext, int offset, int length)protected voidfinalize()longunsafeNativeHandleWithoutGuard()booleanverifyTag(byte[] tag)
-
-
-
Field Detail
-
TAG_SIZE_IN_BYTES
public static final int TAG_SIZE_IN_BYTES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Aes256GcmDecryption
public Aes256GcmDecryption(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
-
decrypt
public void decrypt(byte[] plaintext)
-
decrypt
public void decrypt(byte[] plaintext, int offset, int length)
-
verifyTag
public boolean verifyTag(byte[] tag)
-
-