Shorten auth7

This commit is contained in:
Frank Denis 2015-12-07 17:41:20 +01:00
parent 26535c3d42
commit ea43d1b18b

View File

@ -3,14 +3,14 @@
#include "cmptest.h"
static unsigned char key[32];
static unsigned char c[1000];
static unsigned char c[600];
static unsigned char a[64];
int main(void)
{
int clen;
for (clen = 0; clen < 1000; ++clen) {
for (clen = 0; clen < sizeof c; ++clen) {
randombytes_buf(key, sizeof key);
randombytes_buf(c, clen);
crypto_auth_hmacsha512(a, c, clen, key);