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

version» Context lines:

pike.git/src/post_modules/Nettle/mac.cmod:404:    if (len != POLY1305_AES_KEY_SIZE) {    Pike_error("Invalid key length.\n");    }    poly1305_aes_set_key(ctx, key);   }      static void pike_poly1305_aes_set_iv(void *ctx, unsigned len,    const uint8_t *key)   {    if (len != POLY1305_AES_IV_SIZE) { -  Pike_error("Invalid key length.\n"); +  Pike_error("Invalid iv length.\n");    } -  poly1305_aes_set_key(ctx, key); +  poly1305_aes_set_nonce(ctx, key);   }      #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