File: cryptonite_blake2s.c

package info (click to toggle)
haskell-cryptonite 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,160 kB
  • sloc: ansic: 21,001; haskell: 16,572; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "cryptonite_blake2s.h"

void cryptonite_blake2s_init(blake2s_ctx *ctx, uint32_t hashlen)
{
	blake2s_init(ctx, hashlen / 8);
}

void cryptonite_blake2s_update(blake2s_ctx *ctx, const uint8_t *data, uint32_t len)
{
	blake2s_update(ctx, data, len);
}

void cryptonite_blake2s_finalize(blake2s_ctx *ctx, uint32_t hashlen, uint8_t *out)
{
	blake2s_final(ctx, out, hashlen / 8);
}