3 #include "crypto_uint8.h"
5 #define TEST_NAME "shorthash"
11 crypto_uint8 in
[MAXLEN
], out
[crypto_shorthash_BYTES
], k
[crypto_shorthash_KEYBYTES
];
14 for( i
= 0; i
< crypto_shorthash_KEYBYTES
; ++i
) k
[i
] = i
;
16 for(i
=0;i
<MAXLEN
;++i
) {
18 crypto_shorthash( out
, in
, i
, k
);
19 for (j
= 0;j
< crypto_shorthash_BYTES
;++j
) printf("%02x",(unsigned int) out
[j
]);