openpgp-card: add algorithm to PublicKeyMaterial Display for EccPub

This commit is contained in:
Heiko Schaefer 2022-10-31 12:38:44 +01:00
parent fe0a8565e8
commit 535c9e6e0a
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -128,7 +128,12 @@ impl std::fmt::Display for PublicKeyMaterial {
)
}
Self::E(ecc) => {
write!(f, "ECC, data: {:02X}", ecc.data.plain_hex(false))
write!(
f,
"ECC [{}], data: {:02X}",
ecc.algo(),
ecc.data.plain_hex(false)
)
}
}
}