diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-10-10 11:14:45 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-10-10 11:16:07 +0200 |
commit | 3c76d468060a02b0aa129308bc413b91d166167b (patch) | |
tree | 3e89f0187bfef9c58ed31fc09a673d43bd1c5bff /openpgp/src/parse | |
parent | 37e1364032d8e1592cee0c16fd726abacc6fd07c (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.rs | 3 |
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); } } |