You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ed25519 and ed448 private keys are serialized using DER encoding, PKCS8 format and \x00 as password, it causes the thread to panic and crashes the program.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: NulError(0, [0])', /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.53/src/pkey.rs:366:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "[...]/test.py", line 5, in <module>
ed25519_priv_key.private_bytes(
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: NulError(0, [0])
Issue description
When
ed25519
anded448
private keys are serialized using DER encoding, PKCS8 format and\x00
as password, it causes the thread to panic and crashes the program.Steps to reproduce bug
NOTE: using any other password does raise an error.
cryptography installation
cryptography is installed via poetry with version constraint >=35.0.0:
Required Version numbers
The text was updated successfully, but these errors were encountered: