Skip to content

Conversation

@mweinelt
Copy link
Contributor

@mweinelt mweinelt commented May 18, 2025

The RAND_bytes binding has been removed in cryptography 45.0. The
recommendation[1] is now to rely on os.urandom, which is already
implemented in the native backend.
The pycrpto implementation was removed earlier, so this removes the
leftover attempt to import it.

Closes: #380

[1] https://cryptography.io/en/latest/random-numbers/

The RAND_bytes binding has been removed in cryptography 45.0. The
recommendation[1] is now to rely on `os.urandom`, which is already
implemented in the native backend.
The pycrpto implementation was removed earlier, so this removes the
leftover attempt to import it.

Closes: mpdavis#380

[1] https://cryptography.io/en/latest/random-numbers/
@mweinelt mweinelt force-pushed the cryptography-45.0-compat branch from 69375a2 to 752abd2 Compare May 18, 2025 23:55
@asherf asherf merged commit 916dd9e into mpdavis:master May 28, 2025
15 checks passed
@mweinelt mweinelt deleted the cryptography-45.0-compat branch May 28, 2025 16:15
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

Successfully merging this pull request may close these issues.

Usage of RAND_bytes breaks with cryptography>=45.0

2 participants