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

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:487:    str = (uint8_t *)s->str;       while( (len-stored) >= 16 )    {    INCREMENT(16, THIS->ctr);    aes_encrypt(&THIS->aes_ctx, 16, str, THIS->ctr);    stored += 16;    str += 16;       if( !(stored % (1<<19)) ) +  {    ctr_debug_update(NULL); -  +  THIS->reseed_counter++; +  if(THIS->reseed_counter>THIS->reseed_interval) +  apply_current(f_Nettle_AES128_CTR_DRBG_entropy_underflow_fun_num, 0);    } -  +  }       if( len>stored )    {    uint8_t buf[16];    INCREMENT(16, THIS->ctr);    aes_encrypt(&THIS->aes_ctx, 16, buf, THIS->ctr);    memcpy(str, buf, len-stored);    }       ctr_debug_update(NULL);