packages feed

crypton-2.3.1 / cbits / crypton_blake2sp.h

#ifndef CRYPTOHASH_BLAKE2SP_H#define CRYPTOHASH_BLAKE2SP_H#include "blake2.h"typedef blake2sp_state blake2sp_ctx;void crypton_blake2sp_init(blake2sp_ctx *ctx, uint32_t hashlen);void crypton_blake2sp_init_key(blake2sp_ctx *ctx, uint32_t hashlen, const uint8_t *key, uint32_t keylen);void crypton_blake2sp_update(blake2sp_ctx *ctx, const uint8_t *data, uint32_t len);void crypton_blake2sp_finalize(blake2sp_ctx *ctx, uint32_t hashlen, uint8_t *out);#endif