-
Notifications
You must be signed in to change notification settings - Fork 1.3k
os.urandom for Pico/RP2040 not supported #4196
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
Comments
which library requires os.urandom? |
In the bundle, |
@joelburton you cant use random.randint() ? |
I can and can fork those (it’s RSA lib I want). But thought it would be helpful to get this on someone’s non-urgent list for implementation for the pico.
Thanks!
… On Feb 13, 2021, at 2:19 PM, ladyada ***@***.***> wrote:
@joelburton you cant use random.randint() ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
well tbf i dont know the crypto implications - i am not sure how we seed the pico's RNG. i will leave open but yah maybe can you submit a PR to change RSA lib to use random. instead of os.urandom if it throws an exception? what are you doing with the pico and RSA anyways? makin a U2F? :) |
I teach Computer Science; I'm making graduation gifts for my students of a
pico with various CS challenges built in, and one of them is decrypting a
message using RSA. :-)
…On Sat, Feb 13, 2021 at 6:41 PM ladyada ***@***.***> wrote:
well tbf i dont know the crypto implications - i am not sure how we seed
the pico's RNG. i will leave open but yah maybe can you submit a PR to
change RSA lib to use random. instead of os.urandom if it throws an
exception?
what are you doing with the pico and RSA anyways? makin a U2F? :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4196 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI7XFTF2NAOP26LMZOD3F3S64Z6TANCNFSM4XSO7DOQ>
.
--
Joel Burton - joel@joelburton.com
GTalk: joel@joelburton.com, Mobile/SMS: +1 415 513 2470
|
ahh ok, random.* would be fine for your purposes then! if you submit a PR we will review it and merge |
CPython's |
Attempts to use
os.urandom(n)
on the Pico currently report:The datasheet for the Pico indicate that the ring oscillator can be used for this (RP2040 datasheet, page 240). They do note that there are potential cryptographic attacks possible on this, but could this still be a considered "random hardware"? There are CircuitPython libraries that require
os.urandom()
.The text was updated successfully, but these errors were encountered: