We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The documentation for Pk::len() says "Key length in bits". However, it aligns to bytes:
Pk::len()
fn main() { let mut entropy = mbedtls::rng::OsEntropy::new(); let mut rng = mbedtls::rng::CtrDrbg::new(Arc::new(entropy), None).unwrap(); let pk = Pk::generate_rsa(&mut rng, 1026, 3).unwrap(); assert_eq!(pk.len(), pk.rsa_public_modulus().unwrap().bit_length().unwrap()); }
Fails to assert with left: 1032, right: 1026.
left: 1032, right: 1026
This comes from MbedTLS, we should update the documentation.
The text was updated successfully, but these errors were encountered:
Known upstream bug Mbed-TLS/mbedtls#868
Sorry, something went wrong.
Thanks, I am closing this, as it will be taken care of upstream.
No branches or pull requests
The documentation for
Pk::len()
says "Key length in bits". However, it aligns to bytes:Fails to assert with
left: 1032, right: 1026
.This comes from MbedTLS, we should update the documentation.
The text was updated successfully, but these errors were encountered: