compute

fun compute(payload: ByteArray, to: Int, from: Int, id: Int): ByteArray(source)

Compute the SFPP deduplication hash for a message.

Return

16-byte truncated SHA-256 hash

Parameters

payload

the encrypted message payload

to

destination node number (little-endian)

from

source node number (little-endian)

id

packet ID (little-endian)