summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2022-11-17 15:30:10 +0100
committerNeal H. Walfield <neal@pep.foundation>2022-11-17 15:30:10 +0100
commit573d02d2425d329a6c982bcf1374f577d599f83c (patch)
tree90cc8212e4396fb7983ee03ecdea7471f299268e
parent17c4014da597923bf8e103e0dcc0b7ffaa3f2708 (diff)
openpgp: Remove misleading comment.
- The description of the `Signature3` data structure was mostly a copy and paste of the description of a `Signature4` data structure. Unfortunately, some v4 specific information was not removed. Remove it now.
-rw-r--r--openpgp/src/packet/signature.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/openpgp/src/packet/signature.rs b/openpgp/src/packet/signature.rs
index 283d29c0..a392adc5 100644
--- a/openpgp/src/packet/signature.rs
+++ b/openpgp/src/packet/signature.rs
@@ -2105,13 +2105,6 @@ impl PartialEq for Signature3 {
/// packets. Thus, the computed values are ignored ([`level`],
/// [`computed_digest`]).
///
- /// Note: because this function also compares the unhashed
- /// subpacket area, it is possible for a malicious party to take
- /// valid signatures, add subpackets to the unhashed area,
- /// yielding valid but distinct signatures. If you want to ignore
- /// the unhashed area, you should instead use the
- /// [`Signature::normalized_eq`] method.
- ///
/// [`level`]: Signature3::level()
/// [`computed_digest`]: Signature3::computed_digest()
fn eq(&self, other: &Signature3) -> bool {