diff --git a/mbedtls/src/pk/mod.rs b/mbedtls/src/pk/mod.rs index e87d60653..862c03d04 100644 --- a/mbedtls/src/pk/mod.rs +++ b/mbedtls/src/pk/mod.rs @@ -246,6 +246,8 @@ impl Pk { Ok(ret) } + /// This function now need a RNG because it utilized `EcPoint::mul` function which must need + /// a random number generator for blinding in mbedtls 3.X, pub fn private_from_ec_components(rng: &mut F, mut curve: EcGroup, private_key: Mpi) -> Result { let mut ret = Self::init(); let curve_generator = curve.generator()?;