diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-06-21 21:26:19 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-07-18 16:02:20 +0200 |
commit | 7fab4310409189767e86b9d2f5fa6d3fa3fd6270 (patch) | |
tree | 397356850a65b056dd9ca924672eb37b17d8922b /test/enginetest.c | |
parent | 0a9a7540d4850dc39e69d5ccd0f382e604bdfee4 (diff) |
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: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/9217)
(cherry picked from commit 04edd688b3727835f9b2c7cca7e4c963bf3ed2ba)
Diffstat (limited to 'test/enginetest.c')
0 files changed, 0 insertions, 0 deletions