mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-05 19:55:59 +01:00
Documentation
This commit is contained in:
parent
ddb1f11c5a
commit
a90e37ba53
1 changed files with 7 additions and 0 deletions
|
@ -177,6 +177,13 @@ public abstract class OmemoRatchet<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey,
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the concatenation of the payload of the OmemoElement and the given auth tag.
|
||||
*
|
||||
* @param element omemoElement (message element)
|
||||
* @param authTag authTag
|
||||
* @return payload + authTag
|
||||
*/
|
||||
static byte[] payloadAndAuthTag(OmemoElement element, byte[] authTag) {
|
||||
if (!element.isMessageElement()) {
|
||||
throw new IllegalArgumentException("OmemoElement has no payload.");
|
||||
|
|
Loading…
Reference in a new issue