wrapper.sodium.crypto_auth_hmacsha512

Undocumented in source.

Members

Aliases

crypto_auth_hmacsha512
alias crypto_auth_hmacsha512 = deimos.sodium.crypto_auth_hmacsha512.crypto_auth_hmacsha512
Undocumented in source.
crypto_auth_hmacsha512_final
alias crypto_auth_hmacsha512_final = deimos.sodium.crypto_auth_hmacsha512.crypto_auth_hmacsha512_final
Undocumented in source.
crypto_auth_hmacsha512_init
alias crypto_auth_hmacsha512_init = deimos.sodium.crypto_auth_hmacsha512.crypto_auth_hmacsha512_init
Undocumented in source.
crypto_auth_hmacsha512_update
alias crypto_auth_hmacsha512_update = deimos.sodium.crypto_auth_hmacsha512.crypto_auth_hmacsha512_update
Undocumented in source.
crypto_auth_hmacsha512_verify
alias crypto_auth_hmacsha512_verify = deimos.sodium.crypto_auth_hmacsha512.crypto_auth_hmacsha512_verify
Undocumented in source.

Functions

crypto_auth_hmacsha512
bool crypto_auth_hmacsha512(ubyte[crypto_auth_hmacsha512_BYTES] mac, ubyte[] message, ubyte[crypto_auth_hmacsha512_KEYBYTES] skey)

The crypto_auth_hmacsha512() function authenticates a message message using the secret key skey, and puts the authenticator into mac. Returns 0? on success.

crypto_auth_hmacsha512_bytes (from deimos.sodium.crypto_auth_hmacsha512)
size_t crypto_auth_hmacsha512_bytes() via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.
crypto_auth_hmacsha512_final
bool crypto_auth_hmacsha512_final(crypto_auth_hmacsha512_state state, ubyte[crypto_auth_hmacsha512_BYTES] out_)
Undocumented in source. Be warned that the author may not have intended to support it.
crypto_auth_hmacsha512_init
bool crypto_auth_hmacsha512_init(crypto_auth_hmacsha512_state state, ubyte[] skey)

This alternative API supports a key of arbitrary length

crypto_auth_hmacsha512_keybytes (from deimos.sodium.crypto_auth_hmacsha512)
size_t crypto_auth_hmacsha512_keybytes() via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.
crypto_auth_hmacsha512_keygen (from deimos.sodium.crypto_auth_hmacsha512)
void crypto_auth_hmacsha512_keygen(ubyte[crypto_auth_hmacsha512_KEYBYTES] k) via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.
crypto_auth_hmacsha512_statebytes (from deimos.sodium.crypto_auth_hmacsha512)
size_t crypto_auth_hmacsha512_statebytes() via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.
crypto_auth_hmacsha512_update
bool crypto_auth_hmacsha512_update(crypto_auth_hmacsha512_state state, ubyte[] in_)
Undocumented in source. Be warned that the author may not have intended to support it.
crypto_auth_hmacsha512_verify
bool crypto_auth_hmacsha512_verify(ubyte[crypto_auth_hmacsha512_BYTES] mac, ubyte[] message, ubyte[crypto_auth_hmacsha512_KEYBYTES] skey)

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.

Manifest constants

crypto_auth_hmacsha512_BYTES (from deimos.sodium.crypto_auth_hmacsha512)
enum crypto_auth_hmacsha512_BYTES; via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.
crypto_auth_hmacsha512_KEYBYTES (from deimos.sodium.crypto_auth_hmacsha512)
enum crypto_auth_hmacsha512_KEYBYTES; via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.

Structs

crypto_auth_hmacsha512_state (from deimos.sodium.crypto_auth_hmacsha512)
struct crypto_auth_hmacsha512_state via public import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_BYTES, crypto_auth_hmacsha512_bytes, crypto_auth_hmacsha512_KEYBYTES, crypto_auth_hmacsha512_keybytes, crypto_auth_hmacsha512_state, crypto_auth_hmacsha512_statebytes, crypto_auth_hmacsha512_keygen;
Undocumented in source.

Meta