Commit 7e5cf7b
committed
Use CT memcmp in crypto_sign_verify_internal
This has negligible impact on performance while improving
readability and provability.
For now, we still declassify the result of the verification,
but this may be further improved in the future.
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>1 parent 81c7c9a commit 7e5cf7b
2 files changed
+7
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
878 | | - | |
| 877 | + | |
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
| |||
961 | 960 | | |
962 | 961 | | |
963 | 962 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
| 963 | + | |
984 | 964 | | |
985 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
986 | 969 | | |
987 | 970 | | |
988 | 971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments