1 2 #define TEST_NAME "auth6" 3 #include "cmptest.h" 4 5 /* "Test Case 2" from RFC 4231 */ 6 static unsigned char key[32] = "Jefe"; 7 static unsigned char c[] = "what do ya want for nothing?"; 8 9 static unsigned char a[64]; 10 11 int 12 main(void) 13 { 14 int i; 15 16 crypto_auth_hmacsha512(a, c, sizeof c - 1U, key); 17 for (i = 0; i < 64; ++i) { 18 printf(",0x%02x", (unsigned int) a[i]); 19 if (i % 8 == 7) 20 printf("\n"); 21 } 22 return 0; 23 } 24