Skip to content

Commit

Permalink
borrow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaileke committed Sep 6, 2024
1 parent a9722fe commit 1c040b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bedrock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ impl Bedrock {
let group = EcGroup::from_curve_name(Nid::SECP384R1).expect("EC Group Error");
let ec_key = EcKey::generate(&group).expect("Private Key Error");
//let pkey = PKey::from_ec_key(ec_key.clone()).expect("PKey Error");
self.ec_key = Option::from(ec_key);
self.ec_key = Option::from(ec_key.clone());

let public_key_pem = ec_key.public_key_to_pem().expect("Public Key PEM Error");
let public_key_der = pem_to_der(&public_key_pem).expect("Public Key Der Error");
Expand Down

0 comments on commit 1c040b0

Please sign in to comment.