diff --git a/openpgp-card/src/card_do/fingerprint.rs b/openpgp-card/src/card_do/fingerprint.rs index 1e4fdf5..672e1a2 100644 --- a/openpgp-card/src/card_do/fingerprint.rs +++ b/openpgp-card/src/card_do/fingerprint.rs @@ -82,7 +82,10 @@ fn fingerprints(input: &[u8]) -> nom::IResult<&[u8], KeySet> { ) } -pub fn from(input: &[u8]) -> Result, OpenpgpCardError> { +/// Parse three fingerprints from the card into a KeySet of Fingerprints +pub(crate) fn to_keyset( + input: &[u8], +) -> Result, OpenpgpCardError> { log::trace!("Fingerprint from input: {:x?}, len {}", input, input.len()); // The input may be longer than 3 fingerprint, don't fail if it hasn't diff --git a/openpgp-card/src/card_do/mod.rs b/openpgp-card/src/card_do/mod.rs index 97eb3e3..fd02b0e 100644 --- a/openpgp-card/src/card_do/mod.rs +++ b/openpgp-card/src/card_do/mod.rs @@ -140,7 +140,7 @@ impl ApplicationRelatedData { let fp = self.0.find(&Tag::from([0xc5])); if let Some(fp) = fp { - let fp = fingerprint::from(&fp.serialize())?; + let fp = fingerprint::to_keyset(&fp.serialize())?; log::debug!("Fp: {:x?}", fp);