From 626df039615f38535fed9d6f1f7c53ddeb4f40f0 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 3 Sep 2021 23:37:14 +0200 Subject: [PATCH] aws_transcriber: fix CRC check This was broken when porting to crc 2, based on: https://github.com/mrhooray/crc-rs/issues/62#issuecomment-850591181 > CRC_32_BZIP2 is a different algorithm from CRC_32_IEEE, try CRC_32_ISO_HDLC instead. The correct algorithm for replacing checksum_ieee is not CRC_32_BZIP2. Part-of: --- net/rusoto/src/aws_transcriber/packet/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rusoto/src/aws_transcriber/packet/mod.rs b/net/rusoto/src/aws_transcriber/packet/mod.rs index 8bbbba439..f6a65708b 100644 --- a/net/rusoto/src/aws_transcriber/packet/mod.rs +++ b/net/rusoto/src/aws_transcriber/packet/mod.rs @@ -23,7 +23,7 @@ use nom::{ use std::borrow::Cow; use std::io::{self, Write}; -const CRC: crc::Crc = crc::Crc::::new(&crc::CRC_32_BZIP2); +const CRC: crc::Crc = crc::Crc::::new(&crc::CRC_32_ISO_HDLC); #[derive(Debug)] struct Prelude {