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

verify

static fun verify(tag: Bytes, input: Bytes, key: Key): Boolean (source)
static fun verify(tag: ByteArray, input: ByteArray, key: Key): Boolean (source)

Verify an input using an authentication tag.

Parameters

tag - The authentication tag for the input.

input - The input.

key - A confidential key that was used for tag creation.

Return
true if the tag correction authenticates the input (using the specified key).