Blame SOURCES/libsodium-1.0.18/test/default/hash3.c

ca16be
ca16be
#define TEST_NAME "hash3"
ca16be
#include "cmptest.h"
ca16be
ca16be
static unsigned char x[] = "testing\n";
ca16be
static unsigned char h[crypto_hash_BYTES];
ca16be
ca16be
int
ca16be
main(void)
ca16be
{
ca16be
    size_t i;
ca16be
ca16be
    crypto_hash(h, x, sizeof x - 1U);
ca16be
    for (i = 0; i < crypto_hash_BYTES; ++i) {
ca16be
        printf("%02x", (unsigned int) h[i]);
ca16be
    }
ca16be
    printf("\n");
ca16be
ca16be
    return 0;
ca16be
}