summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-10-10 11:14:45 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-10-10 11:16:07 +0200
commit3c76d468060a02b0aa129308bc413b91d166167b (patch)
tree3e89f0187bfef9c58ed31fc09a673d43bd1c5bff /openpgp/src/parse
parent37e1364032d8e1592cee0c16fd726abacc6fd07c (diff)
openpgp: Drop assertion that does not hold.
- Instead, just accept that if other signature types come in, we miscompute the hash, and we'll reject the signature later on.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r--openpgp/src/parse/hashed_reader.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs
index f3646a73..7668fecd 100644
--- a/openpgp/src/parse/hashed_reader.rs
+++ b/openpgp/src/parse/hashed_reader.rs
@@ -331,9 +331,6 @@ impl Cookie {
for h in self.sig_groups[0].hashes.iter_mut() {
t!("{:?}: {:?} hashing {} bytes.",
hashes_for, h.map(|ctx| ctx.algo()), data.len());
- assert!(matches!(h, HashingMode::Text(_)
- | HashingMode::TextLastWasCr(_)),
- "CSF transformation uses text signatures");
h.update(data);
}
}