Class CipherAndAuthTag
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.internal.CipherAndAuthTag
-
public class CipherAndAuthTag extends java.lang.ObjectEncapsulate 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 java.lang.Stringdecrypt(byte[] ciphertext)byte[]getAuthTag()byte[]getIv()byte[]getKey()booleanwasPreKeyEncrypted()
-
-
-
Method Detail
-
decrypt
public java.lang.String decrypt(byte[] ciphertext) throws java.security.InvalidKeyException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.InvalidAlgorithmParameterException- Throws:
java.security.InvalidKeyExceptionjavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionjava.security.NoSuchAlgorithmExceptionjavax.crypto.NoSuchPaddingExceptionjava.security.InvalidAlgorithmParameterException
-
getAuthTag
public byte[] getAuthTag()
-
getKey
public byte[] getKey()
-
getIv
public byte[] getIv()
-
wasPreKeyEncrypted
public boolean wasPreKeyEncrypted()
-
-