]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add value_barriers in constant time select functions
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 21 Jun 2019 19:26:19 +0000 (21:26 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 19 Jul 2019 18:45:25 +0000 (20:45 +0200)
commitaa8b244e5c22193078e3e80fad1f5b27bf62c73b
tree3dbd85435ca315ab0c7141d42d33ea2da914ada7
parent7a7afc559ebc0ad88390cc62bfc34c221d595831
Add value_barriers in constant time select functions

The barriers prevent the compiler from narrowing down the
possible value range of the mask and ~mask in the select
statements, which avoids the recognition of the select
and turning it into a conditional load or branch.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9419)
crypto/constant_time_locl.h