chloride.auth

Undocumented in source.

Members

Aliases

AuthKey
alias AuthKey = ubyte[crypto_auth_KEYBYTES]
Undocumented in source.
Mac
alias Mac = ubyte[crypto_auth_BYTES]
Undocumented in source.
makeAuthKey
alias makeAuthKey = randomArray!AuthKey

Generate a key for use with authentication.

Functions

authenticateMessage
Mac authenticateMessage(ubyte[] message, AuthKey key)

Create an authentication Mac for a message, signed with key.

verifyMac
bool verifyMac(Mac mac, ubyte[] message, AuthKey key)

Verify message authentication with a secret key.

Meta