rust/pv: Replace PKey with Self

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2024-11-06 15:31:41 +00:00
committed by Steffen Eiden
parent 54e175a783
commit 20f1c0e2ea

View File

@@ -299,7 +299,7 @@ impl TryFrom<EcdhPubkeyCoord> for PKey<Public> {
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)
}
}