We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2573ffa commit d174a0aCopy full SHA for d174a0a
openssl/src/pkey_ctx.rs
@@ -818,6 +818,7 @@ impl<T> PkeyCtxRef<T> {
818
#[cfg(test)]
819
mod test {
820
use super::*;
821
+ use crate::bn::BigNum;
822
#[cfg(not(any(boringssl, awslc)))]
823
use crate::cipher::Cipher;
824
use crate::ec::{EcGroup, EcKey};
@@ -953,6 +954,16 @@ mod test {
953
954
ctx.keygen().unwrap();
955
}
956
957
+ #[test]
958
+ fn rsa_generate() {
959
+ let pubexp = BigNum::from_u32(65537).unwrap();
960
+ let mut ctx = PkeyCtx::new_id(Id::RSA).unwrap();
961
+ ctx.keygen_init().unwrap();
962
+ ctx.set_rsa_keygen_pubexp(&pubexp).unwrap();
963
+ ctx.set_rsa_keygen_bits(2048).unwrap();
964
+ ctx.keygen().unwrap();
965
+ }
966
+
967
#[test]
968
#[cfg(any(ossl110, boringssl, libressl360, awslc))]
969
fn hkdf() {
0 commit comments