mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
16 lines
372 B
C
16 lines
372 B
C
#include "blake.h"
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
#include "../sha3/sph_blake.h"
|
|
|
|
|
|
void blake_hash(const char* input, char* output, uint32_t len)
|
|
{
|
|
sph_blake256_context ctx_blake;
|
|
sph_blake256_init(&ctx_blake);
|
|
sph_blake256(&ctx_blake, input, len);
|
|
sph_blake256_close(&ctx_blake, output);
|
|
}
|