crypto_auth_hmacsha512_verify

The crypto_auth_hmacsha512_verify() function verifies in constant time that h is a correct authenticator for the message in whose length is inlen under a secret key k. It returns -1 if the verification fails, and 0 on success.

  1. alias crypto_auth_hmacsha512_verify = deimos.sodium.crypto_auth_hmacsha512.crypto_auth_hmacsha512_verify
  2. bool crypto_auth_hmacsha512_verify(ubyte[crypto_auth_hmacsha512_BYTES] mac, ubyte[] message, ubyte[crypto_auth_hmacsha512_KEYBYTES] skey)
    pragma(inline, true) @nogc pure @trusted nothrow
    bool
    crypto_auth_hmacsha512_verify
    (
    const ubyte[crypto_auth_hmacsha512_BYTES] mac
    ,
    scope const ubyte[] message
    ,
    const ubyte[crypto_auth_hmacsha512_KEYBYTES] skey
    )

Meta