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 byte[]
getAuthTag()
Cipher
getCipher()
byte[]
getIv()
byte[]
getKey()
boolean
wasPreKeyEncrypted()
-
-
-
Constructor Detail
-
CipherAndAuthTag
public CipherAndAuthTag(byte[] key, byte[] iv, byte[] authTag, boolean wasPreKey)
-
-
Method Detail
-
getCipher
public Cipher getCipher() throws CryptoFailedException
- Throws:
CryptoFailedException
-
getAuthTag
public byte[] getAuthTag()
-
getKey
public byte[] getKey()
-
getIv
public byte[] getIv()
-
wasPreKeyEncrypted
public boolean wasPreKeyEncrypted()
-
-