Skip to content

Commit

Permalink
add comments for private_from_ec_components
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed May 2, 2023
1 parent 4b8c50a commit 022fdfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mbedtls/src/pk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F: Random>(rng: &mut F, mut curve: EcGroup, private_key: Mpi) -> Result<Pk> {
let mut ret = Self::init();
let curve_generator = curve.generator()?;
Expand Down

0 comments on commit 022fdfd

Please sign in to comment.