Home
last modified time | relevance | path

Searched refs:new_num_blindings (Results 1 – 2 of 2) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c405 unsigned new_num_blindings = rsa->num_blindings * 2; in rsa_blinding_get() local
406 if (new_num_blindings == 0) { in rsa_blinding_get()
407 new_num_blindings = 1; in rsa_blinding_get()
409 if (new_num_blindings > MAX_BLINDINGS_PER_RSA) { in rsa_blinding_get()
410 new_num_blindings = MAX_BLINDINGS_PER_RSA; in rsa_blinding_get()
412 assert(new_num_blindings > rsa->num_blindings); in rsa_blinding_get()
418 OPENSSL_malloc(sizeof(BN_BLINDING *) * new_num_blindings); in rsa_blinding_get()
419 uint8_t *new_blindings_inuse = OPENSSL_malloc(new_num_blindings); in rsa_blinding_get()
428 for (unsigned i = rsa->num_blindings; i < new_num_blindings; i++) { in rsa_blinding_get()
438 new_num_blindings - rsa->num_blindings); in rsa_blinding_get()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c405 unsigned new_num_blindings = rsa->num_blindings * 2; in rsa_blinding_get() local
406 if (new_num_blindings == 0) { in rsa_blinding_get()
407 new_num_blindings = 1; in rsa_blinding_get()
409 if (new_num_blindings > MAX_BLINDINGS_PER_RSA) { in rsa_blinding_get()
410 new_num_blindings = MAX_BLINDINGS_PER_RSA; in rsa_blinding_get()
412 assert(new_num_blindings > rsa->num_blindings); in rsa_blinding_get()
418 OPENSSL_malloc(sizeof(BN_BLINDING *) * new_num_blindings); in rsa_blinding_get()
419 uint8_t *new_blindings_inuse = OPENSSL_malloc(new_num_blindings); in rsa_blinding_get()
428 for (unsigned i = rsa->num_blindings; i < new_num_blindings; i++) { in rsa_blinding_get()
438 new_num_blindings - rsa->num_blindings); in rsa_blinding_get()
[all …]