From 022fdfd362200c4818f35c076e0c45d21222fb9f Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Tue, 2 May 2023 13:15:55 -0700 Subject: [PATCH] add comments for `private_from_ec_components` --- mbedtls/src/pk/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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()?;