Differential D22184 Diff 64134 www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_boringssl_src_third__party_fiat_curve25519.c
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_boringssl_src_third__party_fiat_curve25519.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/3rdparty/chromium/third_party/boringssl/src/third_party/fiat/curve25519.c.orig 2019-05-23 12:39:34 UTC | |||||
+++ src/3rdparty/chromium/third_party/boringssl/src/third_party/fiat/curve25519.c | |||||
@@ -3032,9 +3032,14 @@ int ED25519_verify(const uint8_t *message, size_t mess | |||||
UINT64_C(0x1000000000000000), | |||||
}; | |||||
for (size_t i = 3;; i--) { | |||||
- if (scopy.u64[i] > kOrder[i]) { | |||||
+#ifdef OPENSSL_BIGENDIAN | |||||
+ const uint64_t n = CRYPTO_bswap8(scopy.u64[i]); | |||||
+#else | |||||
+ const uint64_t n = scopy.u64[i]; | |||||
+#endif | |||||
+ if (n > kOrder[i]) { | |||||
return 0; | |||||
- } else if (scopy.u64[i] < kOrder[i]) { | |||||
+ } else if (n < kOrder[i]) { | |||||
break; | |||||
} else if (i == 0) { | |||||
return 0; |