mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
Fix comment about undefined behavior of constant_time_msb
This comment was correct for the original commit introducing this function (5a3d21c058
), but was fixed in commitd2fa182988
(and67b8bcee95
) Reviewed-by: Ben Kaduk <kaduk@mit.edu> GH: #4975
This commit is contained in:
parent
4dfe4310c3
commit
b12169eeaf
@ -31,12 +31,7 @@ extern "C" {
|
||||
* c = constant_time_select(lt, a, b);
|
||||
*/
|
||||
|
||||
/*
|
||||
* Returns the given value with the MSB copied to all the other
|
||||
* bits. Uses the fact that arithmetic shift shifts-in the sign bit.
|
||||
* However, this is not ensured by the C standard so you may need to
|
||||
* replace this with something else on odd CPUs.
|
||||
*/
|
||||
/* Returns the given value with the MSB copied to all the other bits. */
|
||||
static ossl_inline unsigned int constant_time_msb(unsigned int a);
|
||||
/* Convenience method for uint64_t. */
|
||||
static ossl_inline uint64_t constant_time_msb_64(uint64_t a);
|
||||
|
Loading…
Reference in New Issue
Block a user