crypto_onetimeauth_verify

The crypto_onetimeauth_verify() function checks that 'h' is a correct authenticator of a message 'msg' under the secret key 'key'.

bool
crypto_onetimeauth_verify
()
(
const(ubyte)[] h
,
const(ubyte)[] msg
,
const(ubyte)[] key
)

Parameters

h const(ubyte)[]

authenticator, slice size must be at least crypto_onetimeauth_BYTES, extra ignored

msg const(ubyte)[]

= message

key const(ubyte)[]

= secret key, slice size must be at least crypto_onetimeauth_KEYBYTES, extra ignored

Return Value

Type: bool

success flag

Meta