diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-12-19 14:27:24 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-01-12 18:23:47 +0100 |
commit | 3cca47ba2213368e138fa368a0845617fb30ecd9 (patch) | |
tree | f6b4aefcc745432af945cbfb1ce14cf2918d222a /openpgp/src/armor.rs | |
parent | 9b231ebcb203b99d73ebbb88dcf10576254a965c (diff) |
xxx no more crc24 in rfc9760justus/openpgp-next-hkdf
Diffstat (limited to 'openpgp/src/armor.rs')
-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 6a3bb381..d72b0c1c 100644 --- a/openpgp/src/armor.rs +++ b/openpgp/src/armor.rs @@ -403,10 +403,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(()) |