diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-12-19 14:27:24 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-12-19 14:27:24 +0100 |
commit | 819f5cd82c5aca0179f3f120f4ebfd60ef912809 (patch) | |
tree | 02e660b4c92758d5d4219663e7ad09f283f77a94 | |
parent | 419fd1d19f5900c7eb538e4c1f1b484a1725da73 (diff) |
xxx no more crc24 in rfc9760
-rw-r--r-- | openpgp/src/armor.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs index 49f6ea74..cd52e8b9 100644 --- a/openpgp/src/armor.rs +++ b/openpgp/src/armor.rs @@ -400,10 +400,11 @@ impl<W: Write> Writer<W> { let bytes = &crc.to_be_bytes()[1..4]; // CRC and footer. - write!(self.sink, "={}{}{}{}", - base64::encode_config(&bytes, base64::STANDARD_NO_PAD), - LINE_ENDING, self.kind.end(), LINE_ENDING)?; - + if false { // no more crc24 in rfc9760 + write!(self.sink, "={}{}{}{}", + base64::encode_config(&bytes, base64::STANDARD_NO_PAD), + LINE_ENDING, self.kind.end(), LINE_ENDING)?; + } self.dirty = false; crate::vec_truncate(&mut self.scratch, 0); Ok(()) |