File: cryptonite_blake2bp.c

package info (click to toggle)
haskell-cryptonite 0.30-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,372 kB
  • sloc: ansic: 22,009; haskell: 18,423; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "cryptonite_blake2bp.h"

void cryptonite_blake2bp_init(blake2bp_ctx *ctx, uint32_t hashlen)
{
	_cryptonite_blake2bp_init(ctx, hashlen / 8);
}

void cryptonite_blake2bp_update(blake2bp_ctx *ctx, const uint8_t *data, uint32_t len)
{
	_cryptonite_blake2bp_update(ctx, data, len);
}

void cryptonite_blake2bp_finalize(blake2bp_ctx *ctx, uint32_t hashlen, uint8_t *out)
{
	_cryptonite_blake2bp_final(ctx, out, hashlen / 8);
}