You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
320 B

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