Page MenuHomec4science

extra_api.h
No OneTemporary

File Metadata

Created
Tue, Jul 8, 09:03

extra_api.h

/* 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 20
#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 25 // Number of rounds before forking
#define CRYPTO_NBROUNDS_AFTER 31 // Number of rounds after forking
#endif

Event Timeline