Class CipherAndAuthTag
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.internal.CipherAndAuthTag
-
public class CipherAndAuthTag extends java.lang.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 java.lang.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 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.InvalidKeyException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
java.security.InvalidAlgorithmParameterException
-
getAuthTag
public byte[] getAuthTag()
-
getKey
public byte[] getKey()
-
getIv
public byte[] getIv()
-
wasPreKeyEncrypted
public boolean wasPreKeyEncrypted()
-
-