Searched refs:base_crng (Results 1 – 1 of 1) sorted by relevance
210 } base_crng = { variable211 .lock = __SPIN_LOCK_UNLOCKED(base_crng.lock)268 spin_lock_irqsave(&base_crng.lock, flags); in crng_reseed()269 memcpy(base_crng.key, key, sizeof(base_crng.key)); in crng_reseed()270 next_gen = base_crng.generation + 1; in crng_reseed()273 WRITE_ONCE(base_crng.generation, next_gen); in crng_reseed()276 spin_unlock_irqrestore(&base_crng.lock, flags); in crng_reseed()334 spin_lock_irqsave(&base_crng.lock, flags); in crng_make_state()338 extract_entropy(base_crng.key, sizeof(base_crng.key)); in crng_make_state()339 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()[all …]