packages feed

crypton-0.34: cbits/crypton_blake2bp.h

#ifndef CRYPTOHASH_BLAKE2BP_H
#define CRYPTOHASH_BLAKE2BP_H

#include "blake2.h"

typedef blake2bp_state blake2bp_ctx;

void crypton_blake2bp_init(blake2bp_ctx *ctx, uint32_t hashlen);
void crypton_blake2bp_init_key(blake2bp_ctx *ctx, uint32_t hashlen, const uint8_t *key, size_t keylen);
void crypton_blake2bp_update(blake2bp_ctx *ctx, const uint8_t *data, uint32_t len);
void crypton_blake2bp_finalize(blake2bp_ctx *ctx, uint32_t hashlen, uint8_t *out);

#endif