summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-12-14 12:56:29 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-02-22 16:50:23 +0100
commitbdc22de9e877fc24901b9e95b1413cf7759c5003 (patch)
tree1d4de8143fb6d05f9eb9ab07c0625f8766b824a3
parentb4238fa14e38d8fe4afabdfd1a50bd2bcb94bcb5 (diff)
openpgp: Simplify CRC24 generator polynomial.
- Anything beyond 24 bits is masked off anyway, so this doesn't change the result of the checksum.
-rw-r--r--openpgp/src/armor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index a64bbcc1..9d52404c 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -1278,7 +1278,7 @@ impl<'a> BufferedReader<Cookie> for Reader<'a> {
}
const CRC24_INIT: u32 = 0xB704CE;
-const CRC24_POLY: u32 = 0x1864CFB;
+const CRC24_POLY: u32 = 0x864CFB;
#[derive(Debug)]
struct CRC {