Searched refs:rps (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/shared/ |
D | pkcs11-util.c | 706 size_t rps; in pkcs11_token_acquire_rng() local 719 rps = random_pool_size(); in pkcs11_token_acquire_rng() 721 buffer = malloc(rps); in pkcs11_token_acquire_rng() 725 rv = m->C_GenerateRandom(session, buffer, rps); in pkcs11_token_acquire_rng() 730 r = random_write_entropy(-1, buffer, rps, false); in pkcs11_token_acquire_rng() 734 …bug("Successfully written %zu bytes random data acquired via PKCS#11 to kernel random pool.", rps); in pkcs11_token_acquire_rng()
|
D | tpm2-util.c | 229 size_t rps, done = 0; in tpm2_credit_random() local 240 for (rps = random_pool_size(); rps > 0;) { in tpm2_credit_random() 248 …MIN(rps, 32U), /* 32 is supposedly a safe choice, given that AES 256bit keys are this long, and TP… in tpm2_credit_random() 263 rps = LESS_BY(rps, buffer->size); in tpm2_credit_random()
|