From 535c9e6e0a387b000881b128aab55d5f5665cdc7 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Mon, 31 Oct 2022 12:38:44 +0100 Subject: [PATCH] openpgp-card: add algorithm to PublicKeyMaterial Display for EccPub --- openpgp-card/src/crypto_data.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openpgp-card/src/crypto_data.rs b/openpgp-card/src/crypto_data.rs index 1867617..075e301 100644 --- a/openpgp-card/src/crypto_data.rs +++ b/openpgp-card/src/crypto_data.rs @@ -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) + ) } } }