Lines Matching defs:bytes
43 unsigned int bytes;
122 g->pools[n].bytes = g->pools[n].pool_size = 0;
206 hash_add(g->key_hash,g->pools[n].pool,g->pools[n].bytes);
207 g->pools[n].bytes = 0;
227 apr_size_t bytes)
232 for (n = 0; n < bytes; ++n) {
238 if (p->pool_size < p->bytes+1) {
239 unsigned char *np = apr_palloc(g->apr_pool,(p->bytes+1)*2);
241 memcpy(np,p->pool,p->bytes);
243 p->pool_size = (p->bytes+1)*2;
245 p->pool[p->bytes++] = entropy[n];
247 if (p->bytes == g->rehash_size) {
250 for (r = 0; r < p->bytes/2; r+=g->pool_hash->size)
252 p->bytes/=2;
254 assert(p->bytes < g->rehash_size);
257 if (g->pools[0].bytes >= g->reseed_size)
261 /* This will give g->B_size bytes of randomness */
270 apr_size_t bytes)
274 for (n = 0; n < bytes; ) {
281 l = min(bytes-n,g->random_bytes);
290 apr_size_t bytes)
294 apr_random_bytes(g,random,bytes);
300 apr_size_t bytes)
304 apr_random_bytes(g,random,bytes);