Sha256: e2738efb5a87e6577596e55fe7a12d5fb39867b460d1f0cacb504bdbee1583ed
Contents?: true
Size: 389 Bytes
Versions: 3
Compression:
Stored size: 389 Bytes
Contents
#include <stdio.h> #include "crypto_auth_hmacsha512256.h" /* "Test Case 2" from RFC 4231 */ unsigned char key[32] = "Jefe"; unsigned char c[28] = "what do ya want for nothing?"; unsigned char a[32]; main() { int i; crypto_auth_hmacsha512256(a,c,sizeof c,key); for (i = 0;i < 32;++i) { printf(",0x%02x",(unsigned int) a[i]); if (i % 8 == 7) printf("\n"); } return 0; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_nacl-0.1.2 | ext/ruby_nacl/NaCl/tests/auth.c |
ruby_nacl-0.1.1 | ext/ruby_nacl/NaCl/tests/auth.c |
ruby_nacl-0.1.0 | ext/ruby_nacl/NaCl/tests/auth.c |