crypto / org.apache.tuweni.crypto.sodium / Auth / auth

auth

static fun auth(input: Bytes, key: Key): Bytes (source)
static fun auth(input: ByteArray, key: Key): ByteArray (source)

Create an authentication tag for a given input.

Parameters

input - The input to generate an authentication tag for.

key - A confidential key.

Return
The authentication tag.