We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 136cb98 commit 196f154Copy full SHA for 196f154
1 file changed
wolfcrypt/src/curve25519.c
@@ -58,7 +58,13 @@ const curve25519_set_type curve25519_sets[] = {
58
}
59
};
60
61
-static const word32 kCurve25519BasePoint[CURVE25519_KEYSIZE/sizeof(word32)] = {9};
+static const word32 kCurve25519BasePoint[CURVE25519_KEYSIZE/sizeof(word32)] = {
62
+#ifdef BIG_ENDIAN_ORDER
63
+ 0x09000000
64
+#else
65
+ 9
66
+#endif
67
+};
68
69
/* Curve25519 private key must be less than order */
70
/* These functions clamp private k and check it */
0 commit comments