4
0
mirror of https://github.com/QuasarApp/openssl.git synced 2025-05-08 07:29:41 +00:00
Bernd Edlinger ec8fcae925 Improve the overflow handling in rsaz_512_sqr
We have always a carry in %rcx or %rbx in range 0..2
from the previous stage, that is added to the result
of the 64-bit square, but the low nibble of any square
can only be 0, 1, 4, 9.

Therefore one "adcq $0, %rdx" can be removed.
Likewise in the ADX code we can remove one
"adcx %rbp, $out" since %rbp is always 0, and carry is
also zero, therefore that is a no-op.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10576)
2019-12-04 22:57:18 +01:00
..
2018-11-20 13:29:53 +00:00
2019-02-26 14:11:34 +00:00
2015-05-22 23:43:07 +01:00
2018-08-14 13:40:34 +01:00
2018-08-14 13:40:34 +01:00
2017-03-10 19:14:21 +01:00
2016-09-06 11:09:50 -04:00
2016-02-23 13:21:07 -05:00
2016-06-07 21:58:46 +01:00
2018-11-20 13:29:53 +00:00
2018-08-14 13:40:34 +01:00
2015-01-22 09:31:38 +00:00
2019-09-10 14:36:07 +01:00
2015-06-23 03:02:05 +02:00