From a86c0f3c0e312a4d82e8cc211ba89676c0a2db02 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 11 Jun 2020 10:56:09 +0200 Subject: openpgp: Improve documentation. - Issuer fingerprint and intended recipient subpackets do contain a version number. - Typo. --- openpgp/src/fingerprint.rs | 3 +-- openpgp/src/keyid.rs | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'openpgp') diff --git a/openpgp/src/fingerprint.rs b/openpgp/src/fingerprint.rs index a88dafdd..7ed623d1 100644 --- a/openpgp/src/fingerprint.rs +++ b/openpgp/src/fingerprint.rs @@ -15,8 +15,7 @@ pub enum Fingerprint { /// 20 byte SHA-1 hash. V4([u8;20]), /// Used for holding fingerprints that we don't understand. For - /// instance, we don't grok v3 fingerprints. And, it is possible - /// that the Issuer subpacket contains the wrong number of bytes. + /// instance, we don't grok v3 fingerprints. Invalid(Box<[u8]>) } diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index 6d8e739f..f823299b 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -18,9 +18,9 @@ use crate::Result; pub enum KeyID { /// Lower 8 byte SHA-1 hash. V4([u8;8]), - /// Used for holding fingerprints that we don't understand. For - /// instance, we don't grok v3 fingerprints. And, it is possible - /// that the Issuer subpacket contains the wrong number of bytes. + /// Used for holding keyids that we don't understand. For + /// instance, we don't grok v3 keyids. And, it is possible that + /// the Issuer subpacket contains the wrong number of bytes. Invalid(Box<[u8]>) } -- cgit v1.2.3