/*
Written in the D programming language.
For git maintenance (ensure at least one congruent line with originating C header):
#define crypto_auth_hmacsha512256_H
*/

module deimos.sodium.crypto_auth_hmacsha512256;

import deimos.sodium.crypto_auth_hmacsha512 : crypto_auth_hmacsha512_state;


extern(C) @nogc :


enum crypto_auth_hmacsha512256_BYTES = 32U;

size_t crypto_auth_hmacsha512256_bytes() pure @trusted;

enum crypto_auth_hmacsha512256_KEYBYTES = 32U;

size_t crypto_auth_hmacsha512256_keybytes() pure @trusted;

int crypto_auth_hmacsha512256(ubyte* out_, const(ubyte)* in_,
                              ulong inlen,const(ubyte)* k) pure; // __attribute__ ((nonnull(1, 4)));

int crypto_auth_hmacsha512256_verify(const(ubyte)* h,
                                     const(ubyte)* in_,
                                     ulong inlen,
                                     const(ubyte)* k) pure nothrow; // __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4)));

/* ------------------------------------------------------------------------- */

alias crypto_auth_hmacsha512256_state = crypto_auth_hmacsha512_state;

size_t crypto_auth_hmacsha512256_statebytes() pure @trusted;

int crypto_auth_hmacsha512256_init(crypto_auth_hmacsha512256_state* state,
                                   const(ubyte)* key,
                                   size_t keylen) pure; // __attribute__ ((nonnull));

int crypto_auth_hmacsha512256_update(crypto_auth_hmacsha512256_state* state,
                                     const(ubyte)* in_,
                                     ulong inlen) pure; // __attribute__ ((nonnull(1)));

int crypto_auth_hmacsha512256_final(crypto_auth_hmacsha512256_state* state,
                                    ubyte* out_) pure; // __attribute__ ((nonnull));

void crypto_auth_hmacsha512256_keygen(ref ubyte[crypto_auth_hmacsha512256_KEYBYTES] k) nothrow @trusted; // __attribute__ ((nonnull));