Skip to content
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

no_std compatibility #10

Open
francescomedina opened this issue Feb 20, 2023 · 1 comment
Open

no_std compatibility #10

francescomedina opened this issue Feb 20, 2023 · 1 comment

Comments

@francescomedina
Copy link

francescomedina commented Feb 20, 2023

I'm trying to use the library with an ARM Cortex M4 and I'm having problems with the dilithium library's getrandom crate because the error message says:
the thumbv7em-none-eabi target may not support the standard library

Since the embedded systems compatibility is not specified in the Readme, I wanted to kindly ask if the library is designed to work in a no_std environment?

Thanks

@mberry
Copy link
Member

mberry commented Feb 21, 2023

Yes, moving towards a portable RNG setup as mentioned in #2 that can remove the rand dependency. Will still need the RngCore and CryptoRng traits from rand_core. Essentially mirroring what exists in the Kyber library here:

https://github.com/Argyle-Software/kyber/blob/1f282d1b8a5708b73b8689bb8d52c6ca965b052b/src/rng.rs#L1-L9

After that, no_std support is simple enough to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants