19 lines
424 B
C
19 lines
424 B
C
#include "keccak.h"
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
#include "sha3/sph_types.h"
|
|
#include "sha3/sph_keccak.h"
|
|
|
|
|
|
void keccak_hash(const char* input, char* output, unsigned int size)
|
|
{
|
|
sph_keccak256_context ctx_keccak;
|
|
sph_keccak256_init(&ctx_keccak);
|
|
sph_keccak256 (&ctx_keccak, input, size);//80);
|
|
sph_keccak256_close(&ctx_keccak, output);
|
|
}
|
|
|