Class CipherAndAuthTag
java.lang.Object
org.jivesoftware.smackx.omemo.internal.CipherAndAuthTag
Encapsulate Cipher and AuthTag.
-
Constructor Details
-
CipherAndAuthTag
public CipherAndAuthTag(byte[] key, byte[] iv, byte[] authTag, boolean wasPreKey)
-
-
Method Details
-
decrypt
public String decrypt(byte[] ciphertext) throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException -
getAuthTag
public byte[] getAuthTag() -
getKey
public byte[] getKey() -
getIv
public byte[] getIv() -
wasPreKeyEncrypted
public boolean wasPreKeyEncrypted()
-