2014-04-17 04:00:02 +02:00
|
|
|
#include "blake.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "sha3/sph_blake.h"
|
|
|
|
|
|
|
|
|
2014-04-19 20:27:09 +02:00
|
|
|
void blake_hash(const char* input, char* output, uint32_t len)
|
2014-04-17 04:00:02 +02:00
|
|
|
{
|
|
|
|
sph_blake256_context ctx_blake;
|
|
|
|
sph_blake256_init(&ctx_blake);
|
|
|
|
sph_blake256(&ctx_blake, input, len);
|
|
|
|
sph_blake256_close(&ctx_blake, output);
|
|
|
|
}
|
|
|
|
|