v0.7.3
This commit is contained in:
@@ -59,8 +59,12 @@ pub fn openpgp_card_public_key_pem(public_key: &PublicKeyMaterial) -> Option<(Ve
|
||||
PublicKeyMaterial::R(rsa_pub) => {
|
||||
Some(rsa_public_key_pem(rsa_pub.n(), rsa_pub.v()))
|
||||
}
|
||||
PublicKeyMaterial::E(ecc_pub) => {
|
||||
let ecc_pub_key_bytes_sha256 = sha256_bytes(&ecc_pub.data());
|
||||
Some((ecc_pub_key_bytes_sha256, format!("hex:{}", hex::encode(&ecc_pub.data()))))
|
||||
}
|
||||
_ => {
|
||||
warning!("Not RSA public key: {:?}", public_key);
|
||||
warning!("Unknown public key: {:?}", public_key);
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user