From 37da2899f40661e3e9631e497da8dc59b971cbd0 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 17:07:39 +0000 Subject: 20060303a --- libsec/port/hmactest.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libsec/port/hmactest.c (limited to 'libsec/port/hmactest.c') diff --git a/libsec/port/hmactest.c b/libsec/port/hmactest.c new file mode 100644 index 00000000..8c7d896d --- /dev/null +++ b/libsec/port/hmactest.c @@ -0,0 +1,19 @@ +#include "os.h" +#include +#include + +uchar key[] = "Jefe"; +uchar data[] = "what do ya want for nothing?"; + +void +main(void) +{ + int i; + uchar hash[MD5dlen]; + + hmac_md5(data, strlen((char*)data), key, 4, hash, nil); + for(i=0; i