File: cryptonite_blake2s.c

package info (click to toggle)
haskell-cryptonite 0.20-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,936 kB
  • ctags: 1,963
  • sloc: ansic: 31,728; haskell: 10,183; makefile: 3
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);
}