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.
tag
- The authentication tag for 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).