-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s2n doesn't compile on MIPS Platforms #1592
Comments
|
Any hints on what needs to be done to compile on mips? s2n-tls/pq-crypto/sike_r3/sikep434r3.h Line 53 in 8314a96
gets triggered. When I add diff --git a/pq-crypto/sike_r3/sikep434r3.h b/pq-crypto/sike_r3/sikep434r3.h
index 5b797b1d..5ea0b0cf 100644
--- a/pq-crypto/sike_r3/sikep434r3.h
+++ b/pq-crypto/sike_r3/sikep434r3.h
@@ -41,7 +41,7 @@ uint64_t bswap64(uint64_t x);
#define S2N_SIKE_P434_R3_BSWAP_DIGIT(i) bswap64((i))
typedef uint64_t digit_t;
typedef uint32_t hdigit_t;
-#elif defined(_X86_) || defined(_ARM_) || defined(__arm__) || defined(__i386__)
+#elif defined(_X86_) || defined(_ARM_) || defined(__arm__) || defined(__i386__) || defined(__mips__)
#define S2N_SIKE_P434_R3_NWORDS_FIELD 14 /* Number of words of a 434-bit field element */
#define S2N_SIKE_P434_R3_ZERO_WORDS 6 /* Number of "0" digits in the least significant part of p434 + 1 */
#define S2N_SIKE_P434_R3_RADIX 32 then compilation goes through but I'm not sure if it works.
on the embedded system when I try an MQTT connection example that works well on my desktop. |
@stwirth We have actually removed the sike_r3 folder from our pq-crypto directory since df28694. Can you try that commit and let us know if it fixes your MIPS compilation issue? |
Thanks @maddeleine. I can confirm that compilation goes through with that commit and with So from my point of view, this issue can be closed, I compiled s2n successfully for a MIPS platform. |
Problem:
Some users need to disable the pq-crypto build in order to build on MIPS platforms.
There is build error on this line: https://github.com/aws/s2n-tls/blob/main/pq-crypto/sike_r1/config_r1.h#L58
Proposed Solution:
The text was updated successfully, but these errors were encountered: