From 20f1c0e2ea3aa3d3f88365dc3a9db054131007a9 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 6 Nov 2024 15:31:41 +0000 Subject: [PATCH] rust/pv: Replace PKey with Self Signed-off-by: Marc Hartmayer Signed-off-by: Steffen Eiden --- rust/pv/src/req.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/pv/src/req.rs b/rust/pv/src/req.rs index e2608f50..59826ede 100644 --- a/rust/pv/src/req.rs +++ b/rust/pv/src/req.rs @@ -299,7 +299,7 @@ impl TryFrom for PKey { let x = BigNum::from_slice(&ecdh[..ECDH_PUB_KEY_COORD_POINT_SIZE])?; let y = BigNum::from_slice(&ecdh[ECDH_PUB_KEY_COORD_POINT_SIZE..])?; let ec_key = EcKey::from_public_key_affine_coordinates(&grp, &x, &y)?; - PKey::from_ec_key(ec_key) + Self::from_ec_key(ec_key) } }