extra_api.h 621 Bytes
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* Definitions and parameters complementary to api.h */

#ifndef EXTRA_API_H
#define EXTRA_API_H


#include "api.h"

#define CRYPTO_BLOCKSIZE 16
#define CRYPTO_TWEAKSIZE 16
#define CRYPTO_TWEAKEYSIZE (CRYPTO_KEYBYTES+CRYPTO_TWEAKSIZE) // 
#define TWEAKEY_BLOCKSIZE_RATIO ((CRYPTO_TWEAKEYSIZE % CRYPTO_BLOCKSIZE == 0) ? ((int) (CRYPTO_TWEAKEYSIZE/CRYPTO_BLOCKSIZE)) : ((int) (CRYPTO_TWEAKEYSIZE/CRYPTO_BLOCKSIZE) + 1)) /* Number of tweakey states */
#define CRYPTO_BLOCKSIZE_16
#define CRYPTO_NBROUNDS_BEFORE 21 // Number of rounds before forking
#define CRYPTO_NBROUNDS_AFTER 27 // Number of rounds after forking 

#endif