pike.git / src / post_modules / Nettle / mac.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/mac.cmod:419:   #cmod_define PIKE_NAME POLY1305_AES   #cmod_define NETTLE_NAME poly1305_aes   #cmod_include "mac.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #endif      #ifdef HAVE_NETTLE_UMAC_H    - /* These two really ought to be in the <nettle/umac.h> header file, but... */ + /* These really ought to be in the <nettle/umac.h> header file, but... +  * +  * They are now in the upcoming Nettle 3.0. +  */   #ifndef UMAC_BLOCK_SIZE   #define UMAC_BLOCK_SIZE UMAC_DATA_SIZE   #endif -  + #ifndef UMAC_MAX_NONCE_SIZE + #define UMAC_MAX_NONCE_SIZE 16 + #endif   #ifndef UMAC_NONCE_SIZE - #define UMAC_NONCE_SIZE 16 + #define UMAC_NONCE_SIZE UMAC_MAX_NONCE_SIZE   #endif      #define UMAC32_BLOCK_SIZE UMAC_BLOCK_SIZE   #define UMAC32_KEY_SIZE UMAC_KEY_SIZE   #define UMAC32_IV_SIZE UMAC_NONCE_SIZE   #define pike_umac32_set_iv umac32_set_nonce      static void pike_umac32_set_key(void *ctx, pike_nettle_size_t len,    const uint8_t *key)   {