1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-30 17:41:11 +03:00
Files
mbedtls/tests
Gilles Peskine 4f7767445b mbedtls_ecp_gen_privkey_mx: make bit manipulations unconditional
Don't calculate the bit-size of the initially generated random number.
This is not necessary to reach the desired distribution of private
keys, and creates a (tiny) side channel opportunity.

This changes the way the result is derived from the random number, but
does not affect the resulting distribution.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-06-02 21:31:24 +02:00
..
2020-09-07 14:01:52 +02:00