wrapper.sodium.crypto_auth_hmacsha256

Undocumented in source.

Public Imports

deimos.sodium.crypto_auth_hmacsha256
public import deimos.sodium.crypto_auth_hmacsha256 : crypto_auth_hmacsha256_BYTES, crypto_auth_hmacsha256_bytes, crypto_auth_hmacsha256_KEYBYTES, crypto_auth_hmacsha256_keybytes, crypto_auth_hmacsha256_state, crypto_auth_hmacsha256_statebytes, crypto_auth_hmacsha256_keygen;

Members

Aliases

crypto_auth_hmacsha256
alias crypto_auth_hmacsha256 = deimos.sodium.crypto_auth_hmacsha256.crypto_auth_hmacsha256
Undocumented in source.
crypto_auth_hmacsha256_final
alias crypto_auth_hmacsha256_final = deimos.sodium.crypto_auth_hmacsha256.crypto_auth_hmacsha256_final
Undocumented in source.
crypto_auth_hmacsha256_init
alias crypto_auth_hmacsha256_init = deimos.sodium.crypto_auth_hmacsha256.crypto_auth_hmacsha256_init
Undocumented in source.
crypto_auth_hmacsha256_update
alias crypto_auth_hmacsha256_update = deimos.sodium.crypto_auth_hmacsha256.crypto_auth_hmacsha256_update
Undocumented in source.
crypto_auth_hmacsha256_verify
alias crypto_auth_hmacsha256_verify = deimos.sodium.crypto_auth_hmacsha256.crypto_auth_hmacsha256_verify
Undocumented in source.

Functions

crypto_auth_hmacsha256
bool crypto_auth_hmacsha256(ubyte[crypto_auth_hmacsha256_BYTES] mac, ubyte[] message, ubyte[crypto_auth_hmacsha256_KEYBYTES] skey)

The crypto_auth_hmacsha256() function authenticates a message message using the secret key skey, and puts the authenticator into mac. It returns true on success.

crypto_auth_hmacsha256_final
bool crypto_auth_hmacsha256_final(crypto_auth_hmacsha256_state state, ubyte[crypto_auth_hmacsha256_BYTES] out_)
Undocumented in source. Be warned that the author may not have intended to support it.
crypto_auth_hmacsha256_init
bool crypto_auth_hmacsha256_init(crypto_auth_hmacsha256_state state, ubyte[] skey)

This alternative API supports a key of arbitrary length

crypto_auth_hmacsha256_update
bool crypto_auth_hmacsha256_update(crypto_auth_hmacsha256_state state, ubyte[] in_)
Undocumented in source. Be warned that the author may not have intended to support it.
crypto_auth_hmacsha256_verify
bool crypto_auth_hmacsha256_verify(ubyte[crypto_auth_hmacsha256_BYTES] mac, ubyte[] message, ubyte[crypto_auth_hmacsha256_KEYBYTES] skey)

The crypto_auth_hmacsha256_verify() function verifies in constant time that mac is a correct authenticator for the message message under a secret key skey. It returns true on success of verification.

Meta