We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c514ef commit b971254Copy full SHA for b971254
src/rust/cryptography-key-parsing/src/spki.rs
@@ -22,7 +22,8 @@ pub fn parse_public_key(data: &[u8]) -> KeyParsingResult<ParsedPublicKey> {
22
&mut bn_ctx,
23
)
24
.map_err(|_| KeyParsingError::InvalidKey)?;
25
- let ec_key = openssl::ec::EcKey::from_public_key(&group, &ec_point)?;
+ let ec_key = openssl::ec::EcKey::from_public_key(&group, &ec_point)
26
+ .map_err(|_| KeyParsingError::InvalidKey)?;
27
let pkey = openssl::pkey::PKey::from_ec_key(ec_key)?;
28
Ok(ParsedPublicKey::Pkey(pkey))
29
}
0 commit comments