-
Notifications
You must be signed in to change notification settings - Fork 202
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
Test on Windows and fix CMakeList #25
Conversation
56b13e5
to
6d1575f
Compare
a5ca90b
to
e915376
Compare
@@ -0,0 +1 @@ | |||
SHA256SUMS eol=lf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise sha256sum
chokes on Windows, as it is checked out with eol=input
.
Weirdly enough, on my branch this passed https://travis-ci.com/github/thomwiggers/kyber-clean/builds/177924662 |
Can you please tell me how to import the library into the project? |
This looks like a linker error, how exactly are you trying to build your code. |
Windows 11 Pro 22H2 22621.1992
#include <kem.h>
int main()
{
uint8_t pk[CRYPTO_PUBLICKEYBYTES];
uint8_t sk[CRYPTO_SECRETKEYBYTES];
uint8_t ct[CRYPTO_CIPHERTEXTBYTES];
uint8_t key[CRYPTO_BYTES];
crypto_kem_keypair(pk, sk);
crypto_kem_enc(ct, key, pk);
crypto_kem_dec(key, ct, sk);
}
If you add |
With PQClean I also get unresolved external symbol. Help please. |
FWIW, even further downstream, I'd suggest taking a look at liboqs where there's Windows CI (passing). |
@cryptojedi Is there a reason the PQClean github workflows (containing Windows as I realize only now) are not displayed on the project README? Or is their status summarily shown somewhere else? |
We have a bajillion of them. https://github.com/PQClean/PQClean/blob/master/.github/workflows/BADGES.md Not sure why they're failing right now though. |
Thanks for the pointer.
The log seems pretty clear about that: "Prohibited use of preprocessor conditional" |
I meant I did not have time to look into it 😉 |
ACK. PQClean/PQClean#492 seems like it would be fixing that. |
No, this change had no effect. |
What do you mean by this? |
Is the algorithm implemented correctly? Are there any vulnerabilities? I recently saw a lib in which key pair were not generated and the code from the example worked with empty keys. This lib had a lot of stars and no one paid attention to the obvious vulnerability. That's why I wanted to use the official implementation. |
OQS uses the code from this repository; it extracts it via a set of scripts that are publicly available in the liboqs repository. I would expect any vulnerability in liboqs's Kyber to also be present here. You might be interested in an implementation of Kyber that has actual proofs of correctness attached to it. See https://github.com/formosa-crypto/libjade and https://eprint.iacr.org/2023/215.pdf |
Agreed. With one caveat: The ARM code in
Hence open-quantum-safe/liboqs#1466. Anyone reading: Please state interest in getting that issue resolved (sooner than later) to help |
Uses the CMake build files to test on Windows and fixes some small issues with the
CMakeList.txt
s.