hash.c 356 Bytes
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "crypto_hash.h"
#include "drysponge.h"

int crypto_hash(
    unsigned char *out,
    const unsigned char *in,
    unsigned long long inlen
){
    (void) DRYSPONGE_enc; //avoid warning
    (void) DRYSPONGE_dec; //avoid warning
    DRYSPONGE_hash(
        in,     // message,
        inlen,  // mlen,
        out     //digest
    );
    return 0;
}