Class CipherAndAuthTag
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.internal.CipherAndAuthTag
-
public class CipherAndAuthTag extends Object
Encapsulate Cipher and AuthTag.
-
-
Constructor Summary
Constructors Constructor Description CipherAndAuthTag(byte[] key, byte[] iv, byte[] authTag, boolean wasPreKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(byte[] ciphertext)
byte[]
getAuthTag()
byte[]
getIv()
byte[]
getKey()
boolean
wasPreKeyEncrypted()
-
-
-
Constructor Detail
-
CipherAndAuthTag
public CipherAndAuthTag(byte[] key, byte[] iv, byte[] authTag, boolean wasPreKey)
-
-
Method Detail
-
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()
-
-