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

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:380:    applied twice in the rare condition that the string length is a    multiple of 1<<20. */    if( (stored % (1<<20)) )    fortuna_rekey();       RETURN finish_string_builder(&s);    }       INIT    { -  THIS->ctr = xalloc(16); -  memset(THIS->ctr,0,16); -  THIS->key = xalloc(32); -  memset(THIS->key,0,32); +  THIS->ctr = xcalloc(1,16); +  THIS->key = xcalloc(1,32);    aes_set_encrypt_key(&THIS->aes_ctx, AES256_KEY_SIZE, THIS->key);    sha256_init(&THIS->sha_ctx);    THIS->data = xalloc(16);    }       EXIT    gc_trivial;    {    free(THIS->ctr);    free(THIS->key);