hash3.c 335 B

1234567891011121314151617181920
  1. #define TEST_NAME "hash3"
  2. #include "cmptest.h"
  3. static unsigned char x[] = "testing\n";
  4. static unsigned char h[crypto_hash_BYTES];
  5. int
  6. main(void)
  7. {
  8. size_t i;
  9. crypto_hash(h, x, sizeof x - 1U);
  10. for (i = 0; i < crypto_hash_BYTES; ++i) {
  11. printf("%02x", (unsigned int) h[i]);
  12. }
  13. printf("\n");
  14. return 0;
  15. }