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

verify

static fun verify(authenticator: Bytes!, in: Bytes!, key: Key!): Boolean (source)

Verifies the authenticator of a message matches according to a secret.

Parameters

authenticator - Bytes!: the authenticator to verify

in - Bytes!: the message to match against the authenticator

key - Key!: the secret key to use for verification

Return
Boolean: true if the authenticator verifies the message according to the secret, false otherwise

static fun verify(authenticator: ByteArray!, in: ByteArray!, key: Key!): Boolean (source)

Verifies the authenticator of a message matches according to a secret.

Parameters

authenticator - ByteArray!: the authenticator to verify

in - ByteArray!: the message to match against the authenticator

key - Key!: the secret key to use for verification

Return
Boolean: true if the authenticator verifies the message according to the secret, false otherwise