1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 14:32:06 +01:00

Documentation

This commit is contained in:
Paul Schaub 2018-01-05 18:43:10 +01:00
parent ddb1f11c5a
commit a90e37ba53

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) { static byte[] payloadAndAuthTag(OmemoElement element, byte[] authTag) {
if (!element.isMessageElement()) { if (!element.isMessageElement()) {
throw new IllegalArgumentException("OmemoElement has no payload."); throw new IllegalArgumentException("OmemoElement has no payload.");