Shorten auth7
This commit is contained in:
parent
26535c3d42
commit
ea43d1b18b
@ -3,14 +3,14 @@
|
|||||||
#include "cmptest.h"
|
#include "cmptest.h"
|
||||||
|
|
||||||
static unsigned char key[32];
|
static unsigned char key[32];
|
||||||
static unsigned char c[1000];
|
static unsigned char c[600];
|
||||||
static unsigned char a[64];
|
static unsigned char a[64];
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int clen;
|
int clen;
|
||||||
|
|
||||||
for (clen = 0; clen < 1000; ++clen) {
|
for (clen = 0; clen < sizeof c; ++clen) {
|
||||||
randombytes_buf(key, sizeof key);
|
randombytes_buf(key, sizeof key);
|
||||||
randombytes_buf(c, clen);
|
randombytes_buf(c, clen);
|
||||||
crypto_auth_hmacsha512(a, c, clen, key);
|
crypto_auth_hmacsha512(a, c, clen, key);
|
||||||
|
Loading…
Reference in New Issue
Block a user