Add libsodium source

This commit is contained in:
Mikhail Thompson
2024-06-27 15:00:43 +03:00
parent 7f4e947cf5
commit 6bd505c313
566 changed files with 77692 additions and 5 deletions

View File

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