Documentation

This commit is contained in:
Paul Schaub 2018-01-05 18:43:10 +01:00
parent ddb1f11c5a
commit a90e37ba53
1 changed files with 7 additions and 0 deletions

View File

@ -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.");