crypto_hash.c 282 Bytes
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <stdlib.h>
#include "subterranean_ref.h"
#include "api.h"

int crypto_hash(unsigned char *out, const unsigned char *in, unsigned long long inlen){
    /* Call hash function */
    subterranean_xof_direct(out, 8*CRYPTO_BYTES, in, 8*inlen);
    return 0;
}