Differential D22184 Diff 64134 www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_boringssl_src_crypto_fipsmodule_ecdsa_ecdsa.c
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_boringssl_src_crypto_fipsmodule_ecdsa_ecdsa.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/crypto/fipsmodule/ecdsa/ecdsa.c.orig 2019-05-23 12:39:34 UTC | |||||
+++ src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/ecdsa/ecdsa.c | |||||
@@ -80,7 +80,11 @@ static void digest_to_scalar(const EC_GROUP *group, EC | |||||
} | |||||
OPENSSL_memset(out, 0, sizeof(EC_SCALAR)); | |||||
for (size_t i = 0; i < digest_len; i++) { | |||||
+#ifdef OPENSSL_BIGENDIAN | |||||
+ out->bytes[i ^ (BN_BYTES-1)] = digest[digest_len - 1 - i]; | |||||
+#else | |||||
out->bytes[i] = digest[digest_len - 1 - i]; | |||||
+#endif | |||||
} | |||||
// If it is still too long, truncate remaining bits with a shift. |