| 1 |
#![allow(non_snake_case)] |
| 2 |
use crate::Algorithm; |
| 3 |
#[test] |
| 4 |
fn test_CRC_3_GSM() { |
| 5 |
pub const CRC_3_GSM: Algorithm<u8> = Algorithm { width: 3, poly: 0x3, init: 0x0, refin: false, refout: false, xorout: 0x7, check: 0x4, residue: 0x2 }; |
| 6 |
assert_eq!(CRC_3_GSM, crate::algorithm::CRC_3_GSM); |
| 7 |
} |
| 8 |
#[test] |
| 9 |
fn test_CRC_3_ROHC() { |
| 10 |
pub const CRC_3_ROHC: Algorithm<u8> = Algorithm { width: 3, poly: 0x3, init: 0x7, refin: true, refout: true, xorout: 0x0, check: 0x6, residue: 0x0 }; |
| 11 |
assert_eq!(CRC_3_ROHC, crate::algorithm::CRC_3_ROHC); |
| 12 |
} |
| 13 |
#[test] |
| 14 |
fn test_CRC_4_G_704() { |
| 15 |
pub const CRC_4_G_704: Algorithm<u8> = Algorithm { width: 4, poly: 0x3, init: 0x0, refin: true, refout: true, xorout: 0x0, check: 0x7, residue: 0x0 }; |
| 16 |
assert_eq!(CRC_4_G_704, crate::algorithm::CRC_4_G_704); |
| 17 |
} |
| 18 |
#[test] |
| 19 |
fn test_CRC_4_INTERLAKEN() { |
| 20 |
pub const CRC_4_INTERLAKEN: Algorithm<u8> = Algorithm { width: 4, poly: 0x3, init: 0xf, refin: false, refout: false, xorout: 0xf, check: 0xb, residue: 0x2 }; |
| 21 |
assert_eq!(CRC_4_INTERLAKEN, crate::algorithm::CRC_4_INTERLAKEN); |
| 22 |
} |
| 23 |
#[test] |
| 24 |
fn test_CRC_5_EPC_C1G2() { |
| 25 |
pub const CRC_5_EPC_C1G2: Algorithm<u8> = Algorithm { width: 5, poly: 0x09, init: 0x09, refin: false, refout: false, xorout: 0x00, check: 0x00, residue: 0x00 }; |
| 26 |
assert_eq!(CRC_5_EPC_C1G2, crate::algorithm::CRC_5_EPC_C1G2); |
| 27 |
} |
| 28 |
#[test] |
| 29 |
fn test_CRC_5_G_704() { |
| 30 |
pub const CRC_5_G_704: Algorithm<u8> = Algorithm { width: 5, poly: 0x15, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0x07, residue: 0x00 }; |
| 31 |
assert_eq!(CRC_5_G_704, crate::algorithm::CRC_5_G_704); |
| 32 |
} |
| 33 |
#[test] |
| 34 |
fn test_CRC_5_USB() { |
| 35 |
pub const CRC_5_USB: Algorithm<u8> = Algorithm { width: 5, poly: 0x05, init: 0x1f, refin: true, refout: true, xorout: 0x1f, check: 0x19, residue: 0x06 }; |
| 36 |
assert_eq!(CRC_5_USB, crate::algorithm::CRC_5_USB); |
| 37 |
} |
| 38 |
#[test] |
| 39 |
fn test_CRC_6_CDMA2000_A() { |
| 40 |
pub const CRC_6_CDMA2000_A: Algorithm<u8> = Algorithm { width: 6, poly: 0x27, init: 0x3f, refin: false, refout: false, xorout: 0x00, check: 0x0d, residue: 0x00 }; |
| 41 |
assert_eq!(CRC_6_CDMA2000_A, crate::algorithm::CRC_6_CDMA2000_A); |
| 42 |
} |
| 43 |
#[test] |
| 44 |
fn test_CRC_6_CDMA2000_B() { |
| 45 |
pub const CRC_6_CDMA2000_B: Algorithm<u8> = Algorithm { width: 6, poly: 0x07, init: 0x3f, refin: false, refout: false, xorout: 0x00, check: 0x3b, residue: 0x00 }; |
| 46 |
assert_eq!(CRC_6_CDMA2000_B, crate::algorithm::CRC_6_CDMA2000_B); |
| 47 |
} |
| 48 |
#[test] |
| 49 |
fn test_CRC_6_DARC() { |
| 50 |
pub const CRC_6_DARC: Algorithm<u8> = Algorithm { width: 6, poly: 0x19, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0x26, residue: 0x00 }; |
| 51 |
assert_eq!(CRC_6_DARC, crate::algorithm::CRC_6_DARC); |
| 52 |
} |
| 53 |
#[test] |
| 54 |
fn test_CRC_6_G_704() { |
| 55 |
pub const CRC_6_G_704: Algorithm<u8> = Algorithm { width: 6, poly: 0x03, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0x06, residue: 0x00 }; |
| 56 |
assert_eq!(CRC_6_G_704, crate::algorithm::CRC_6_G_704); |
| 57 |
} |
| 58 |
#[test] |
| 59 |
fn test_CRC_6_GSM() { |
| 60 |
pub const CRC_6_GSM: Algorithm<u8> = Algorithm { width: 6, poly: 0x2f, init: 0x00, refin: false, refout: false, xorout: 0x3f, check: 0x13, residue: 0x3a }; |
| 61 |
assert_eq!(CRC_6_GSM, crate::algorithm::CRC_6_GSM); |
| 62 |
} |
| 63 |
#[test] |
| 64 |
fn test_CRC_7_MMC() { |
| 65 |
pub const CRC_7_MMC: Algorithm<u8> = Algorithm { width: 7, poly: 0x09, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0x75, residue: 0x00 }; |
| 66 |
assert_eq!(CRC_7_MMC, crate::algorithm::CRC_7_MMC); |
| 67 |
} |
| 68 |
#[test] |
| 69 |
fn test_CRC_7_ROHC() { |
| 70 |
pub const CRC_7_ROHC: Algorithm<u8> = Algorithm { width: 7, poly: 0x4f, init: 0x7f, refin: true, refout: true, xorout: 0x00, check: 0x53, residue: 0x00 }; |
| 71 |
assert_eq!(CRC_7_ROHC, crate::algorithm::CRC_7_ROHC); |
| 72 |
} |
| 73 |
#[test] |
| 74 |
fn test_CRC_7_UMTS() { |
| 75 |
pub const CRC_7_UMTS: Algorithm<u8> = Algorithm { width: 7, poly: 0x45, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0x61, residue: 0x00 }; |
| 76 |
assert_eq!(CRC_7_UMTS, crate::algorithm::CRC_7_UMTS); |
| 77 |
} |
| 78 |
#[test] |
| 79 |
fn test_CRC_8_AUTOSAR() { |
| 80 |
pub const CRC_8_AUTOSAR: Algorithm<u8> = Algorithm { width: 8, poly: 0x2f, init: 0xff, refin: false, refout: false, xorout: 0xff, check: 0xdf, residue: 0x42 }; |
| 81 |
assert_eq!(CRC_8_AUTOSAR, crate::algorithm::CRC_8_AUTOSAR); |
| 82 |
} |
| 83 |
#[test] |
| 84 |
fn test_CRC_8_BLUETOOTH() { |
| 85 |
pub const CRC_8_BLUETOOTH: Algorithm<u8> = Algorithm { width: 8, poly: 0xa7, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0x26, residue: 0x00 }; |
| 86 |
assert_eq!(CRC_8_BLUETOOTH, crate::algorithm::CRC_8_BLUETOOTH); |
| 87 |
} |
| 88 |
#[test] |
| 89 |
fn test_CRC_8_CDMA2000() { |
| 90 |
pub const CRC_8_CDMA2000: Algorithm<u8> = Algorithm { width: 8, poly: 0x9b, init: 0xff, refin: false, refout: false, xorout: 0x00, check: 0xda, residue: 0x00 }; |
| 91 |
assert_eq!(CRC_8_CDMA2000, crate::algorithm::CRC_8_CDMA2000); |
| 92 |
} |
| 93 |
#[test] |
| 94 |
fn test_CRC_8_DARC() { |
| 95 |
pub const CRC_8_DARC: Algorithm<u8> = Algorithm { width: 8, poly: 0x39, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0x15, residue: 0x00 }; |
| 96 |
assert_eq!(CRC_8_DARC, crate::algorithm::CRC_8_DARC); |
| 97 |
} |
| 98 |
#[test] |
| 99 |
fn test_CRC_8_DVB_S2() { |
| 100 |
pub const CRC_8_DVB_S2: Algorithm<u8> = Algorithm { width: 8, poly: 0xd5, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0xbc, residue: 0x00 }; |
| 101 |
assert_eq!(CRC_8_DVB_S2, crate::algorithm::CRC_8_DVB_S2); |
| 102 |
} |
| 103 |
#[test] |
| 104 |
fn test_CRC_8_GSM_A() { |
| 105 |
pub const CRC_8_GSM_A: Algorithm<u8> = Algorithm { width: 8, poly: 0x1d, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0x37, residue: 0x00 }; |
| 106 |
assert_eq!(CRC_8_GSM_A, crate::algorithm::CRC_8_GSM_A); |
| 107 |
} |
| 108 |
#[test] |
| 109 |
fn test_CRC_8_GSM_B() { |
| 110 |
pub const CRC_8_GSM_B: Algorithm<u8> = Algorithm { width: 8, poly: 0x49, init: 0x00, refin: false, refout: false, xorout: 0xff, check: 0x94, residue: 0x53 }; |
| 111 |
assert_eq!(CRC_8_GSM_B, crate::algorithm::CRC_8_GSM_B); |
| 112 |
} |
| 113 |
#[test] |
| 114 |
fn test_CRC_8_HITAG() { |
| 115 |
pub const CRC_8_HITAG: Algorithm<u8> = Algorithm { width: 8, poly: 0x1d, init: 0xff, refin: false, refout: false, xorout: 0x00, check: 0xb4, residue: 0x00 }; |
| 116 |
assert_eq!(CRC_8_HITAG, crate::algorithm::CRC_8_HITAG); |
| 117 |
} |
| 118 |
#[test] |
| 119 |
fn test_CRC_8_I_432_1() { |
| 120 |
pub const CRC_8_I_432_1: Algorithm<u8> = Algorithm { width: 8, poly: 0x07, init: 0x00, refin: false, refout: false, xorout: 0x55, check: 0xa1, residue: 0xac }; |
| 121 |
assert_eq!(CRC_8_I_432_1, crate::algorithm::CRC_8_I_432_1); |
| 122 |
} |
| 123 |
#[test] |
| 124 |
fn test_CRC_8_I_CODE() { |
| 125 |
pub const CRC_8_I_CODE: Algorithm<u8> = Algorithm { width: 8, poly: 0x1d, init: 0xfd, refin: false, refout: false, xorout: 0x00, check: 0x7e, residue: 0x00 }; |
| 126 |
assert_eq!(CRC_8_I_CODE, crate::algorithm::CRC_8_I_CODE); |
| 127 |
} |
| 128 |
#[test] |
| 129 |
fn test_CRC_8_LTE() { |
| 130 |
pub const CRC_8_LTE: Algorithm<u8> = Algorithm { width: 8, poly: 0x9b, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0xea, residue: 0x00 }; |
| 131 |
assert_eq!(CRC_8_LTE, crate::algorithm::CRC_8_LTE); |
| 132 |
} |
| 133 |
#[test] |
| 134 |
fn test_CRC_8_MAXIM_DOW() { |
| 135 |
pub const CRC_8_MAXIM_DOW: Algorithm<u8> = Algorithm { width: 8, poly: 0x31, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0xa1, residue: 0x00 }; |
| 136 |
assert_eq!(CRC_8_MAXIM_DOW, crate::algorithm::CRC_8_MAXIM_DOW); |
| 137 |
} |
| 138 |
#[test] |
| 139 |
fn test_CRC_8_MIFARE_MAD() { |
| 140 |
pub const CRC_8_MIFARE_MAD: Algorithm<u8> = Algorithm { width: 8, poly: 0x1d, init: 0xc7, refin: false, refout: false, xorout: 0x00, check: 0x99, residue: 0x00 }; |
| 141 |
assert_eq!(CRC_8_MIFARE_MAD, crate::algorithm::CRC_8_MIFARE_MAD); |
| 142 |
} |
| 143 |
#[test] |
| 144 |
fn test_CRC_8_NRSC_5() { |
| 145 |
pub const CRC_8_NRSC_5: Algorithm<u8> = Algorithm { width: 8, poly: 0x31, init: 0xff, refin: false, refout: false, xorout: 0x00, check: 0xf7, residue: 0x00 }; |
| 146 |
assert_eq!(CRC_8_NRSC_5, crate::algorithm::CRC_8_NRSC_5); |
| 147 |
} |
| 148 |
#[test] |
| 149 |
fn test_CRC_8_OPENSAFETY() { |
| 150 |
pub const CRC_8_OPENSAFETY: Algorithm<u8> = Algorithm { width: 8, poly: 0x2f, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0x3e, residue: 0x00 }; |
| 151 |
assert_eq!(CRC_8_OPENSAFETY, crate::algorithm::CRC_8_OPENSAFETY); |
| 152 |
} |
| 153 |
#[test] |
| 154 |
fn test_CRC_8_ROHC() { |
| 155 |
pub const CRC_8_ROHC: Algorithm<u8> = Algorithm { width: 8, poly: 0x07, init: 0xff, refin: true, refout: true, xorout: 0x00, check: 0xd0, residue: 0x00 }; |
| 156 |
assert_eq!(CRC_8_ROHC, crate::algorithm::CRC_8_ROHC); |
| 157 |
} |
| 158 |
#[test] |
| 159 |
fn test_CRC_8_SAE_J1850() { |
| 160 |
pub const CRC_8_SAE_J1850: Algorithm<u8> = Algorithm { width: 8, poly: 0x1d, init: 0xff, refin: false, refout: false, xorout: 0xff, check: 0x4b, residue: 0xc4 }; |
| 161 |
assert_eq!(CRC_8_SAE_J1850, crate::algorithm::CRC_8_SAE_J1850); |
| 162 |
} |
| 163 |
#[test] |
| 164 |
fn test_CRC_8_SMBUS() { |
| 165 |
pub const CRC_8_SMBUS: Algorithm<u8> = Algorithm { width: 8, poly: 0x07, init: 0x00, refin: false, refout: false, xorout: 0x00, check: 0xf4, residue: 0x00 }; |
| 166 |
assert_eq!(CRC_8_SMBUS, crate::algorithm::CRC_8_SMBUS); |
| 167 |
} |
| 168 |
#[test] |
| 169 |
fn test_CRC_8_TECH_3250() { |
| 170 |
pub const CRC_8_TECH_3250: Algorithm<u8> = Algorithm { width: 8, poly: 0x1d, init: 0xff, refin: true, refout: true, xorout: 0x00, check: 0x97, residue: 0x00 }; |
| 171 |
assert_eq!(CRC_8_TECH_3250, crate::algorithm::CRC_8_TECH_3250); |
| 172 |
} |
| 173 |
#[test] |
| 174 |
fn test_CRC_8_WCDMA() { |
| 175 |
pub const CRC_8_WCDMA: Algorithm<u8> = Algorithm { width: 8, poly: 0x9b, init: 0x00, refin: true, refout: true, xorout: 0x00, check: 0x25, residue: 0x00 }; |
| 176 |
assert_eq!(CRC_8_WCDMA, crate::algorithm::CRC_8_WCDMA); |
| 177 |
} |
| 178 |
#[test] |
| 179 |
fn test_CRC_10_ATM() { |
| 180 |
pub const CRC_10_ATM: Algorithm<u16> = Algorithm { width: 10, poly: 0x233, init: 0x000, refin: false, refout: false, xorout: 0x000, check: 0x199, residue: 0x000 }; |
| 181 |
assert_eq!(CRC_10_ATM, crate::algorithm::CRC_10_ATM); |
| 182 |
} |
| 183 |
#[test] |
| 184 |
fn test_CRC_10_CDMA2000() { |
| 185 |
pub const CRC_10_CDMA2000: Algorithm<u16> = Algorithm { width: 10, poly: 0x3d9, init: 0x3ff, refin: false, refout: false, xorout: 0x000, check: 0x233, residue: 0x000 }; |
| 186 |
assert_eq!(CRC_10_CDMA2000, crate::algorithm::CRC_10_CDMA2000); |
| 187 |
} |
| 188 |
#[test] |
| 189 |
fn test_CRC_10_GSM() { |
| 190 |
pub const CRC_10_GSM: Algorithm<u16> = Algorithm { width: 10, poly: 0x175, init: 0x000, refin: false, refout: false, xorout: 0x3ff, check: 0x12a, residue: 0x0c6 }; |
| 191 |
assert_eq!(CRC_10_GSM, crate::algorithm::CRC_10_GSM); |
| 192 |
} |
| 193 |
#[test] |
| 194 |
fn test_CRC_11_FLEXRAY() { |
| 195 |
pub const CRC_11_FLEXRAY: Algorithm<u16> = Algorithm { width: 11, poly: 0x385, init: 0x01a, refin: false, refout: false, xorout: 0x000, check: 0x5a3, residue: 0x000 }; |
| 196 |
assert_eq!(CRC_11_FLEXRAY, crate::algorithm::CRC_11_FLEXRAY); |
| 197 |
} |
| 198 |
#[test] |
| 199 |
fn test_CRC_11_UMTS() { |
| 200 |
pub const CRC_11_UMTS: Algorithm<u16> = Algorithm { width: 11, poly: 0x307, init: 0x000, refin: false, refout: false, xorout: 0x000, check: 0x061, residue: 0x000 }; |
| 201 |
assert_eq!(CRC_11_UMTS, crate::algorithm::CRC_11_UMTS); |
| 202 |
} |
| 203 |
#[test] |
| 204 |
fn test_CRC_12_CDMA2000() { |
| 205 |
pub const CRC_12_CDMA2000: Algorithm<u16> = Algorithm { width: 12, poly: 0xf13, init: 0xfff, refin: false, refout: false, xorout: 0x000, check: 0xd4d, residue: 0x000 }; |
| 206 |
assert_eq!(CRC_12_CDMA2000, crate::algorithm::CRC_12_CDMA2000); |
| 207 |
} |
| 208 |
#[test] |
| 209 |
fn test_CRC_12_DECT() { |
| 210 |
pub const CRC_12_DECT: Algorithm<u16> = Algorithm { width: 12, poly: 0x80f, init: 0x000, refin: false, refout: false, xorout: 0x000, check: 0xf5b, residue: 0x000 }; |
| 211 |
assert_eq!(CRC_12_DECT, crate::algorithm::CRC_12_DECT); |
| 212 |
} |
| 213 |
#[test] |
| 214 |
fn test_CRC_12_GSM() { |
| 215 |
pub const CRC_12_GSM: Algorithm<u16> = Algorithm { width: 12, poly: 0xd31, init: 0x000, refin: false, refout: false, xorout: 0xfff, check: 0xb34, residue: 0x178 }; |
| 216 |
assert_eq!(CRC_12_GSM, crate::algorithm::CRC_12_GSM); |
| 217 |
} |
| 218 |
#[test] |
| 219 |
fn test_CRC_12_UMTS() { |
| 220 |
pub const CRC_12_UMTS: Algorithm<u16> = Algorithm { width: 12, poly: 0x80f, init: 0x000, refin: false, refout: true, xorout: 0x000, check: 0xdaf, residue: 0x000 }; |
| 221 |
assert_eq!(CRC_12_UMTS, crate::algorithm::CRC_12_UMTS); |
| 222 |
} |
| 223 |
#[test] |
| 224 |
fn test_CRC_13_BBC() { |
| 225 |
pub const CRC_13_BBC: Algorithm<u16> = Algorithm { width: 13, poly: 0x1cf5, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x04fa, residue: 0x0000 }; |
| 226 |
assert_eq!(CRC_13_BBC, crate::algorithm::CRC_13_BBC); |
| 227 |
} |
| 228 |
#[test] |
| 229 |
fn test_CRC_14_DARC() { |
| 230 |
pub const CRC_14_DARC: Algorithm<u16> = Algorithm { width: 14, poly: 0x0805, init: 0x0000, refin: true, refout: true, xorout: 0x0000, check: 0x082d, residue: 0x0000 }; |
| 231 |
assert_eq!(CRC_14_DARC, crate::algorithm::CRC_14_DARC); |
| 232 |
} |
| 233 |
#[test] |
| 234 |
fn test_CRC_14_GSM() { |
| 235 |
pub const CRC_14_GSM: Algorithm<u16> = Algorithm { width: 14, poly: 0x202d, init: 0x0000, refin: false, refout: false, xorout: 0x3fff, check: 0x30ae, residue: 0x031e }; |
| 236 |
assert_eq!(CRC_14_GSM, crate::algorithm::CRC_14_GSM); |
| 237 |
} |
| 238 |
#[test] |
| 239 |
fn test_CRC_15_CAN() { |
| 240 |
pub const CRC_15_CAN: Algorithm<u16> = Algorithm { width: 15, poly: 0x4599, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x059e, residue: 0x0000 }; |
| 241 |
assert_eq!(CRC_15_CAN, crate::algorithm::CRC_15_CAN); |
| 242 |
} |
| 243 |
#[test] |
| 244 |
fn test_CRC_15_MPT1327() { |
| 245 |
pub const CRC_15_MPT1327: Algorithm<u16> = Algorithm { width: 15, poly: 0x6815, init: 0x0000, refin: false, refout: false, xorout: 0x0001, check: 0x2566, residue: 0x6815 }; |
| 246 |
assert_eq!(CRC_15_MPT1327, crate::algorithm::CRC_15_MPT1327); |
| 247 |
} |
| 248 |
#[test] |
| 249 |
fn test_CRC_16_ARC() { |
| 250 |
pub const CRC_16_ARC: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0x0000, refin: true, refout: true, xorout: 0x0000, check: 0xbb3d, residue: 0x0000 }; |
| 251 |
assert_eq!(CRC_16_ARC, crate::algorithm::CRC_16_ARC); |
| 252 |
} |
| 253 |
#[test] |
| 254 |
fn test_CRC_16_CDMA2000() { |
| 255 |
pub const CRC_16_CDMA2000: Algorithm<u16> = Algorithm { width: 16, poly: 0xc867, init: 0xffff, refin: false, refout: false, xorout: 0x0000, check: 0x4c06, residue: 0x0000 }; |
| 256 |
assert_eq!(CRC_16_CDMA2000, crate::algorithm::CRC_16_CDMA2000); |
| 257 |
} |
| 258 |
#[test] |
| 259 |
fn test_CRC_16_CMS() { |
| 260 |
pub const CRC_16_CMS: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0xffff, refin: false, refout: false, xorout: 0x0000, check: 0xaee7, residue: 0x0000 }; |
| 261 |
assert_eq!(CRC_16_CMS, crate::algorithm::CRC_16_CMS); |
| 262 |
} |
| 263 |
#[test] |
| 264 |
fn test_CRC_16_DDS_110() { |
| 265 |
pub const CRC_16_DDS_110: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0x800d, refin: false, refout: false, xorout: 0x0000, check: 0x9ecf, residue: 0x0000 }; |
| 266 |
assert_eq!(CRC_16_DDS_110, crate::algorithm::CRC_16_DDS_110); |
| 267 |
} |
| 268 |
#[test] |
| 269 |
fn test_CRC_16_DECT_R() { |
| 270 |
pub const CRC_16_DECT_R: Algorithm<u16> = Algorithm { width: 16, poly: 0x0589, init: 0x0000, refin: false, refout: false, xorout: 0x0001, check: 0x007e, residue: 0x0589 }; |
| 271 |
assert_eq!(CRC_16_DECT_R, crate::algorithm::CRC_16_DECT_R); |
| 272 |
} |
| 273 |
#[test] |
| 274 |
fn test_CRC_16_DECT_X() { |
| 275 |
pub const CRC_16_DECT_X: Algorithm<u16> = Algorithm { width: 16, poly: 0x0589, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x007f, residue: 0x0000 }; |
| 276 |
assert_eq!(CRC_16_DECT_X, crate::algorithm::CRC_16_DECT_X); |
| 277 |
} |
| 278 |
#[test] |
| 279 |
fn test_CRC_16_DNP() { |
| 280 |
pub const CRC_16_DNP: Algorithm<u16> = Algorithm { width: 16, poly: 0x3d65, init: 0x0000, refin: true, refout: true, xorout: 0xffff, check: 0xea82, residue: 0x66c5 }; |
| 281 |
assert_eq!(CRC_16_DNP, crate::algorithm::CRC_16_DNP); |
| 282 |
} |
| 283 |
#[test] |
| 284 |
fn test_CRC_16_EN_13757() { |
| 285 |
pub const CRC_16_EN_13757: Algorithm<u16> = Algorithm { width: 16, poly: 0x3d65, init: 0x0000, refin: false, refout: false, xorout: 0xffff, check: 0xc2b7, residue: 0xa366 }; |
| 286 |
assert_eq!(CRC_16_EN_13757, crate::algorithm::CRC_16_EN_13757); |
| 287 |
} |
| 288 |
#[test] |
| 289 |
fn test_CRC_16_GENIBUS() { |
| 290 |
pub const CRC_16_GENIBUS: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0xffff, refin: false, refout: false, xorout: 0xffff, check: 0xd64e, residue: 0x1d0f }; |
| 291 |
assert_eq!(CRC_16_GENIBUS, crate::algorithm::CRC_16_GENIBUS); |
| 292 |
} |
| 293 |
#[test] |
| 294 |
fn test_CRC_16_GSM() { |
| 295 |
pub const CRC_16_GSM: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0x0000, refin: false, refout: false, xorout: 0xffff, check: 0xce3c, residue: 0x1d0f }; |
| 296 |
assert_eq!(CRC_16_GSM, crate::algorithm::CRC_16_GSM); |
| 297 |
} |
| 298 |
#[test] |
| 299 |
fn test_CRC_16_IBM_3740() { |
| 300 |
pub const CRC_16_IBM_3740: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0xffff, refin: false, refout: false, xorout: 0x0000, check: 0x29b1, residue: 0x0000 }; |
| 301 |
assert_eq!(CRC_16_IBM_3740, crate::algorithm::CRC_16_IBM_3740); |
| 302 |
} |
| 303 |
#[test] |
| 304 |
fn test_CRC_16_IBM_SDLC() { |
| 305 |
pub const CRC_16_IBM_SDLC: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0xffff, refin: true, refout: true, xorout: 0xffff, check: 0x906e, residue: 0xf0b8 }; |
| 306 |
assert_eq!(CRC_16_IBM_SDLC, crate::algorithm::CRC_16_IBM_SDLC); |
| 307 |
} |
| 308 |
#[test] |
| 309 |
fn test_CRC_16_ISO_IEC_14443_3_A() { |
| 310 |
pub const CRC_16_ISO_IEC_14443_3_A: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0xc6c6, refin: true, refout: true, xorout: 0x0000, check: 0xbf05, residue: 0x0000 }; |
| 311 |
assert_eq!(CRC_16_ISO_IEC_14443_3_A, crate::algorithm::CRC_16_ISO_IEC_14443_3_A); |
| 312 |
} |
| 313 |
#[test] |
| 314 |
fn test_CRC_16_KERMIT() { |
| 315 |
pub const CRC_16_KERMIT: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0x0000, refin: true, refout: true, xorout: 0x0000, check: 0x2189, residue: 0x0000 }; |
| 316 |
assert_eq!(CRC_16_KERMIT, crate::algorithm::CRC_16_KERMIT); |
| 317 |
} |
| 318 |
#[test] |
| 319 |
fn test_CRC_16_LJ1200() { |
| 320 |
pub const CRC_16_LJ1200: Algorithm<u16> = Algorithm { width: 16, poly: 0x6f63, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0xbdf4, residue: 0x0000 }; |
| 321 |
assert_eq!(CRC_16_LJ1200, crate::algorithm::CRC_16_LJ1200); |
| 322 |
} |
| 323 |
#[test] |
| 324 |
fn test_CRC_16_M17() { |
| 325 |
pub const CRC_16_M17: Algorithm<u16> = Algorithm { width: 16, poly: 0x5935, init: 0xffff, refin: false, refout: false, xorout: 0x0000, check: 0x772b, residue: 0x0000 }; |
| 326 |
assert_eq!(CRC_16_M17, crate::algorithm::CRC_16_M17); |
| 327 |
} |
| 328 |
#[test] |
| 329 |
fn test_CRC_16_MAXIM_DOW() { |
| 330 |
pub const CRC_16_MAXIM_DOW: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0x0000, refin: true, refout: true, xorout: 0xffff, check: 0x44c2, residue: 0xb001 }; |
| 331 |
assert_eq!(CRC_16_MAXIM_DOW, crate::algorithm::CRC_16_MAXIM_DOW); |
| 332 |
} |
| 333 |
#[test] |
| 334 |
fn test_CRC_16_MCRF4XX() { |
| 335 |
pub const CRC_16_MCRF4XX: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0xffff, refin: true, refout: true, xorout: 0x0000, check: 0x6f91, residue: 0x0000 }; |
| 336 |
assert_eq!(CRC_16_MCRF4XX, crate::algorithm::CRC_16_MCRF4XX); |
| 337 |
} |
| 338 |
#[test] |
| 339 |
fn test_CRC_16_MODBUS() { |
| 340 |
pub const CRC_16_MODBUS: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0xffff, refin: true, refout: true, xorout: 0x0000, check: 0x4b37, residue: 0x0000 }; |
| 341 |
assert_eq!(CRC_16_MODBUS, crate::algorithm::CRC_16_MODBUS); |
| 342 |
} |
| 343 |
#[test] |
| 344 |
fn test_CRC_16_NRSC_5() { |
| 345 |
pub const CRC_16_NRSC_5: Algorithm<u16> = Algorithm { width: 16, poly: 0x080b, init: 0xffff, refin: true, refout: true, xorout: 0x0000, check: 0xa066, residue: 0x0000 }; |
| 346 |
assert_eq!(CRC_16_NRSC_5, crate::algorithm::CRC_16_NRSC_5); |
| 347 |
} |
| 348 |
#[test] |
| 349 |
fn test_CRC_16_OPENSAFETY_A() { |
| 350 |
pub const CRC_16_OPENSAFETY_A: Algorithm<u16> = Algorithm { width: 16, poly: 0x5935, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x5d38, residue: 0x0000 }; |
| 351 |
assert_eq!(CRC_16_OPENSAFETY_A, crate::algorithm::CRC_16_OPENSAFETY_A); |
| 352 |
} |
| 353 |
#[test] |
| 354 |
fn test_CRC_16_OPENSAFETY_B() { |
| 355 |
pub const CRC_16_OPENSAFETY_B: Algorithm<u16> = Algorithm { width: 16, poly: 0x755b, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x20fe, residue: 0x0000 }; |
| 356 |
assert_eq!(CRC_16_OPENSAFETY_B, crate::algorithm::CRC_16_OPENSAFETY_B); |
| 357 |
} |
| 358 |
#[test] |
| 359 |
fn test_CRC_16_PROFIBUS() { |
| 360 |
pub const CRC_16_PROFIBUS: Algorithm<u16> = Algorithm { width: 16, poly: 0x1dcf, init: 0xffff, refin: false, refout: false, xorout: 0xffff, check: 0xa819, residue: 0xe394 }; |
| 361 |
assert_eq!(CRC_16_PROFIBUS, crate::algorithm::CRC_16_PROFIBUS); |
| 362 |
} |
| 363 |
#[test] |
| 364 |
fn test_CRC_16_RIELLO() { |
| 365 |
pub const CRC_16_RIELLO: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0xb2aa, refin: true, refout: true, xorout: 0x0000, check: 0x63d0, residue: 0x0000 }; |
| 366 |
assert_eq!(CRC_16_RIELLO, crate::algorithm::CRC_16_RIELLO); |
| 367 |
} |
| 368 |
#[test] |
| 369 |
fn test_CRC_16_SPI_FUJITSU() { |
| 370 |
pub const CRC_16_SPI_FUJITSU: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0x1d0f, refin: false, refout: false, xorout: 0x0000, check: 0xe5cc, residue: 0x0000 }; |
| 371 |
assert_eq!(CRC_16_SPI_FUJITSU, crate::algorithm::CRC_16_SPI_FUJITSU); |
| 372 |
} |
| 373 |
#[test] |
| 374 |
fn test_CRC_16_T10_DIF() { |
| 375 |
pub const CRC_16_T10_DIF: Algorithm<u16> = Algorithm { width: 16, poly: 0x8bb7, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0xd0db, residue: 0x0000 }; |
| 376 |
assert_eq!(CRC_16_T10_DIF, crate::algorithm::CRC_16_T10_DIF); |
| 377 |
} |
| 378 |
#[test] |
| 379 |
fn test_CRC_16_TELEDISK() { |
| 380 |
pub const CRC_16_TELEDISK: Algorithm<u16> = Algorithm { width: 16, poly: 0xa097, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x0fb3, residue: 0x0000 }; |
| 381 |
assert_eq!(CRC_16_TELEDISK, crate::algorithm::CRC_16_TELEDISK); |
| 382 |
} |
| 383 |
#[test] |
| 384 |
fn test_CRC_16_TMS37157() { |
| 385 |
pub const CRC_16_TMS37157: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0x89ec, refin: true, refout: true, xorout: 0x0000, check: 0x26b1, residue: 0x0000 }; |
| 386 |
assert_eq!(CRC_16_TMS37157, crate::algorithm::CRC_16_TMS37157); |
| 387 |
} |
| 388 |
#[test] |
| 389 |
fn test_CRC_16_UMTS() { |
| 390 |
pub const CRC_16_UMTS: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0xfee8, residue: 0x0000 }; |
| 391 |
assert_eq!(CRC_16_UMTS, crate::algorithm::CRC_16_UMTS); |
| 392 |
} |
| 393 |
#[test] |
| 394 |
fn test_CRC_16_USB() { |
| 395 |
pub const CRC_16_USB: Algorithm<u16> = Algorithm { width: 16, poly: 0x8005, init: 0xffff, refin: true, refout: true, xorout: 0xffff, check: 0xb4c8, residue: 0xb001 }; |
| 396 |
assert_eq!(CRC_16_USB, crate::algorithm::CRC_16_USB); |
| 397 |
} |
| 398 |
#[test] |
| 399 |
fn test_CRC_16_XMODEM() { |
| 400 |
pub const CRC_16_XMODEM: Algorithm<u16> = Algorithm { width: 16, poly: 0x1021, init: 0x0000, refin: false, refout: false, xorout: 0x0000, check: 0x31c3, residue: 0x0000 }; |
| 401 |
assert_eq!(CRC_16_XMODEM, crate::algorithm::CRC_16_XMODEM); |
| 402 |
} |
| 403 |
#[test] |
| 404 |
fn test_CRC_17_CAN_FD() { |
| 405 |
pub const CRC_17_CAN_FD: Algorithm<u32> = Algorithm { width: 17, poly: 0x1685b, init: 0x00000, refin: false, refout: false, xorout: 0x00000, check: 0x04f03, residue: 0x00000 }; |
| 406 |
assert_eq!(CRC_17_CAN_FD, crate::algorithm::CRC_17_CAN_FD); |
| 407 |
} |
| 408 |
#[test] |
| 409 |
fn test_CRC_21_CAN_FD() { |
| 410 |
pub const CRC_21_CAN_FD: Algorithm<u32> = Algorithm { width: 21, poly: 0x102899, init: 0x000000, refin: false, refout: false, xorout: 0x000000, check: 0x0ed841, residue: 0x000000 }; |
| 411 |
assert_eq!(CRC_21_CAN_FD, crate::algorithm::CRC_21_CAN_FD); |
| 412 |
} |
| 413 |
#[test] |
| 414 |
fn test_CRC_24_BLE() { |
| 415 |
pub const CRC_24_BLE: Algorithm<u32> = Algorithm { width: 24, poly: 0x00065b, init: 0x555555, refin: true, refout: true, xorout: 0x000000, check: 0xc25a56, residue: 0x000000 }; |
| 416 |
assert_eq!(CRC_24_BLE, crate::algorithm::CRC_24_BLE); |
| 417 |
} |
| 418 |
#[test] |
| 419 |
fn test_CRC_24_FLEXRAY_A() { |
| 420 |
pub const CRC_24_FLEXRAY_A: Algorithm<u32> = Algorithm { width: 24, poly: 0x5d6dcb, init: 0xfedcba, refin: false, refout: false, xorout: 0x000000, check: 0x7979bd, residue: 0x000000 }; |
| 421 |
assert_eq!(CRC_24_FLEXRAY_A, crate::algorithm::CRC_24_FLEXRAY_A); |
| 422 |
} |
| 423 |
#[test] |
| 424 |
fn test_CRC_24_FLEXRAY_B() { |
| 425 |
pub const CRC_24_FLEXRAY_B: Algorithm<u32> = Algorithm { width: 24, poly: 0x5d6dcb, init: 0xabcdef, refin: false, refout: false, xorout: 0x000000, check: 0x1f23b8, residue: 0x000000 }; |
| 426 |
assert_eq!(CRC_24_FLEXRAY_B, crate::algorithm::CRC_24_FLEXRAY_B); |
| 427 |
} |
| 428 |
#[test] |
| 429 |
fn test_CRC_24_INTERLAKEN() { |
| 430 |
pub const CRC_24_INTERLAKEN: Algorithm<u32> = Algorithm { width: 24, poly: 0x328b63, init: 0xffffff, refin: false, refout: false, xorout: 0xffffff, check: 0xb4f3e6, residue: 0x144e63 }; |
| 431 |
assert_eq!(CRC_24_INTERLAKEN, crate::algorithm::CRC_24_INTERLAKEN); |
| 432 |
} |
| 433 |
#[test] |
| 434 |
fn test_CRC_24_LTE_A() { |
| 435 |
pub const CRC_24_LTE_A: Algorithm<u32> = Algorithm { width: 24, poly: 0x864cfb, init: 0x000000, refin: false, refout: false, xorout: 0x000000, check: 0xcde703, residue: 0x000000 }; |
| 436 |
assert_eq!(CRC_24_LTE_A, crate::algorithm::CRC_24_LTE_A); |
| 437 |
} |
| 438 |
#[test] |
| 439 |
fn test_CRC_24_LTE_B() { |
| 440 |
pub const CRC_24_LTE_B: Algorithm<u32> = Algorithm { width: 24, poly: 0x800063, init: 0x000000, refin: false, refout: false, xorout: 0x000000, check: 0x23ef52, residue: 0x000000 }; |
| 441 |
assert_eq!(CRC_24_LTE_B, crate::algorithm::CRC_24_LTE_B); |
| 442 |
} |
| 443 |
#[test] |
| 444 |
fn test_CRC_24_OPENPGP() { |
| 445 |
pub const CRC_24_OPENPGP: Algorithm<u32> = Algorithm { width: 24, poly: 0x864cfb, init: 0xb704ce, refin: false, refout: false, xorout: 0x000000, check: 0x21cf02, residue: 0x000000 }; |
| 446 |
assert_eq!(CRC_24_OPENPGP, crate::algorithm::CRC_24_OPENPGP); |
| 447 |
} |
| 448 |
#[test] |
| 449 |
fn test_CRC_24_OS_9() { |
| 450 |
pub const CRC_24_OS_9: Algorithm<u32> = Algorithm { width: 24, poly: 0x800063, init: 0xffffff, refin: false, refout: false, xorout: 0xffffff, check: 0x200fa5, residue: 0x800fe3 }; |
| 451 |
assert_eq!(CRC_24_OS_9, crate::algorithm::CRC_24_OS_9); |
| 452 |
} |
| 453 |
#[test] |
| 454 |
fn test_CRC_30_CDMA() { |
| 455 |
pub const CRC_30_CDMA: Algorithm<u32> = Algorithm { width: 30, poly: 0x2030b9c7, init: 0x3fffffff, refin: false, refout: false, xorout: 0x3fffffff, check: 0x04c34abf, residue: 0x34efa55a }; |
| 456 |
assert_eq!(CRC_30_CDMA, crate::algorithm::CRC_30_CDMA); |
| 457 |
} |
| 458 |
#[test] |
| 459 |
fn test_CRC_31_PHILIPS() { |
| 460 |
pub const CRC_31_PHILIPS: Algorithm<u32> = Algorithm { width: 31, poly: 0x04c11db7, init: 0x7fffffff, refin: false, refout: false, xorout: 0x7fffffff, check: 0x0ce9e46c, residue: 0x4eaf26f1 }; |
| 461 |
assert_eq!(CRC_31_PHILIPS, crate::algorithm::CRC_31_PHILIPS); |
| 462 |
} |
| 463 |
#[test] |
| 464 |
fn test_CRC_32_AIXM() { |
| 465 |
pub const CRC_32_AIXM: Algorithm<u32> = Algorithm { width: 32, poly: 0x814141ab, init: 0x00000000, refin: false, refout: false, xorout: 0x00000000, check: 0x3010bf7f, residue: 0x00000000 }; |
| 466 |
assert_eq!(CRC_32_AIXM, crate::algorithm::CRC_32_AIXM); |
| 467 |
} |
| 468 |
#[test] |
| 469 |
fn test_CRC_32_AUTOSAR() { |
| 470 |
pub const CRC_32_AUTOSAR: Algorithm<u32> = Algorithm { width: 32, poly: 0xf4acfb13, init: 0xffffffff, refin: true, refout: true, xorout: 0xffffffff, check: 0x1697d06a, residue: 0x904cddbf }; |
| 471 |
assert_eq!(CRC_32_AUTOSAR, crate::algorithm::CRC_32_AUTOSAR); |
| 472 |
} |
| 473 |
#[test] |
| 474 |
fn test_CRC_32_BASE91_D() { |
| 475 |
pub const CRC_32_BASE91_D: Algorithm<u32> = Algorithm { width: 32, poly: 0xa833982b, init: 0xffffffff, refin: true, refout: true, xorout: 0xffffffff, check: 0x87315576, residue: 0x45270551 }; |
| 476 |
assert_eq!(CRC_32_BASE91_D, crate::algorithm::CRC_32_BASE91_D); |
| 477 |
} |
| 478 |
#[test] |
| 479 |
fn test_CRC_32_BZIP2() { |
| 480 |
pub const CRC_32_BZIP2: Algorithm<u32> = Algorithm { width: 32, poly: 0x04c11db7, init: 0xffffffff, refin: false, refout: false, xorout: 0xffffffff, check: 0xfc891918, residue: 0xc704dd7b }; |
| 481 |
assert_eq!(CRC_32_BZIP2, crate::algorithm::CRC_32_BZIP2); |
| 482 |
} |
| 483 |
#[test] |
| 484 |
fn test_CRC_32_CD_ROM_EDC() { |
| 485 |
pub const CRC_32_CD_ROM_EDC: Algorithm<u32> = Algorithm { width: 32, poly: 0x8001801b, init: 0x00000000, refin: true, refout: true, xorout: 0x00000000, check: 0x6ec2edc4, residue: 0x00000000 }; |
| 486 |
assert_eq!(CRC_32_CD_ROM_EDC, crate::algorithm::CRC_32_CD_ROM_EDC); |
| 487 |
} |
| 488 |
#[test] |
| 489 |
fn test_CRC_32_CKSUM() { |
| 490 |
pub const CRC_32_CKSUM: Algorithm<u32> = Algorithm { width: 32, poly: 0x04c11db7, init: 0x00000000, refin: false, refout: false, xorout: 0xffffffff, check: 0x765e7680, residue: 0xc704dd7b }; |
| 491 |
assert_eq!(CRC_32_CKSUM, crate::algorithm::CRC_32_CKSUM); |
| 492 |
} |
| 493 |
#[test] |
| 494 |
fn test_CRC_32_ISCSI() { |
| 495 |
pub const CRC_32_ISCSI: Algorithm<u32> = Algorithm { width: 32, poly: 0x1edc6f41, init: 0xffffffff, refin: true, refout: true, xorout: 0xffffffff, check: 0xe3069283, residue: 0xb798b438 }; |
| 496 |
assert_eq!(CRC_32_ISCSI, crate::algorithm::CRC_32_ISCSI); |
| 497 |
} |
| 498 |
#[test] |
| 499 |
fn test_CRC_32_ISO_HDLC() { |
| 500 |
pub const CRC_32_ISO_HDLC: Algorithm<u32> = Algorithm { width: 32, poly: 0x04c11db7, init: 0xffffffff, refin: true, refout: true, xorout: 0xffffffff, check: 0xcbf43926, residue: 0xdebb20e3 }; |
| 501 |
assert_eq!(CRC_32_ISO_HDLC, crate::algorithm::CRC_32_ISO_HDLC); |
| 502 |
} |
| 503 |
#[test] |
| 504 |
fn test_CRC_32_JAMCRC() { |
| 505 |
pub const CRC_32_JAMCRC: Algorithm<u32> = Algorithm { width: 32, poly: 0x04c11db7, init: 0xffffffff, refin: true, refout: true, xorout: 0x00000000, check: 0x340bc6d9, residue: 0x00000000 }; |
| 506 |
assert_eq!(CRC_32_JAMCRC, crate::algorithm::CRC_32_JAMCRC); |
| 507 |
} |
| 508 |
#[test] |
| 509 |
fn test_CRC_32_MEF() { |
| 510 |
pub const CRC_32_MEF: Algorithm<u32> = Algorithm { width: 32, poly: 0x741b8cd7, init: 0xffffffff, refin: true, refout: true, xorout: 0x00000000, check: 0xd2c22f51, residue: 0x00000000 }; |
| 511 |
assert_eq!(CRC_32_MEF, crate::algorithm::CRC_32_MEF); |
| 512 |
} |
| 513 |
#[test] |
| 514 |
fn test_CRC_32_MPEG_2() { |
| 515 |
pub const CRC_32_MPEG_2: Algorithm<u32> = Algorithm { width: 32, poly: 0x04c11db7, init: 0xffffffff, refin: false, refout: false, xorout: 0x00000000, check: 0x0376e6e7, residue: 0x00000000 }; |
| 516 |
assert_eq!(CRC_32_MPEG_2, crate::algorithm::CRC_32_MPEG_2); |
| 517 |
} |
| 518 |
#[test] |
| 519 |
fn test_CRC_32_XFER() { |
| 520 |
pub const CRC_32_XFER: Algorithm<u32> = Algorithm { width: 32, poly: 0x000000af, init: 0x00000000, refin: false, refout: false, xorout: 0x00000000, check: 0xbd0be338, residue: 0x00000000 }; |
| 521 |
assert_eq!(CRC_32_XFER, crate::algorithm::CRC_32_XFER); |
| 522 |
} |
| 523 |
#[test] |
| 524 |
fn test_CRC_40_GSM() { |
| 525 |
pub const CRC_40_GSM: Algorithm<u64> = Algorithm { width: 40, poly: 0x0004820009, init: 0x0000000000, refin: false, refout: false, xorout: 0xffffffffff, check: 0xd4164fc646, residue: 0xc4ff8071ff }; |
| 526 |
assert_eq!(CRC_40_GSM, crate::algorithm::CRC_40_GSM); |
| 527 |
} |
| 528 |
#[test] |
| 529 |
fn test_CRC_64_ECMA_182() { |
| 530 |
pub const CRC_64_ECMA_182: Algorithm<u64> = Algorithm { width: 64, poly: 0x42f0e1eba9ea3693, init: 0x0000000000000000, refin: false, refout: false, xorout: 0x0000000000000000, check: 0x6c40df5f0b497347, residue: 0x0000000000000000 }; |
| 531 |
assert_eq!(CRC_64_ECMA_182, crate::algorithm::CRC_64_ECMA_182); |
| 532 |
} |
| 533 |
#[test] |
| 534 |
fn test_CRC_64_GO_ISO() { |
| 535 |
pub const CRC_64_GO_ISO: Algorithm<u64> = Algorithm { width: 64, poly: 0x000000000000001b, init: 0xffffffffffffffff, refin: true, refout: true, xorout: 0xffffffffffffffff, check: 0xb90956c775a41001, residue: 0x5300000000000000 }; |
| 536 |
assert_eq!(CRC_64_GO_ISO, crate::algorithm::CRC_64_GO_ISO); |
| 537 |
} |
| 538 |
#[test] |
| 539 |
fn test_CRC_64_MS() { |
| 540 |
pub const CRC_64_MS: Algorithm<u64> = Algorithm { width: 64, poly: 0x259c84cba6426349, init: 0xffffffffffffffff, refin: true, refout: true, xorout: 0x0000000000000000, check: 0x75d4b74f024eceea, residue: 0x0000000000000000 }; |
| 541 |
assert_eq!(CRC_64_MS, crate::algorithm::CRC_64_MS); |
| 542 |
} |
| 543 |
#[test] |
| 544 |
fn test_CRC_64_REDIS() { |
| 545 |
pub const CRC_64_REDIS: Algorithm<u64> = Algorithm { width: 64, poly: 0xad93d23594c935a9, init: 0x0000000000000000, refin: true, refout: true, xorout: 0x0000000000000000, check: 0xe9c6d914c4b8d9ca, residue: 0x0000000000000000 }; |
| 546 |
assert_eq!(CRC_64_REDIS, crate::algorithm::CRC_64_REDIS); |
| 547 |
} |
| 548 |
#[test] |
| 549 |
fn test_CRC_64_WE() { |
| 550 |
pub const CRC_64_WE: Algorithm<u64> = Algorithm { width: 64, poly: 0x42f0e1eba9ea3693, init: 0xffffffffffffffff, refin: false, refout: false, xorout: 0xffffffffffffffff, check: 0x62ec59e3f1a4f00a, residue: 0xfcacbebd5931a992 }; |
| 551 |
assert_eq!(CRC_64_WE, crate::algorithm::CRC_64_WE); |
| 552 |
} |
| 553 |
#[test] |
| 554 |
fn test_CRC_64_XZ() { |
| 555 |
pub const CRC_64_XZ: Algorithm<u64> = Algorithm { width: 64, poly: 0x42f0e1eba9ea3693, init: 0xffffffffffffffff, refin: true, refout: true, xorout: 0xffffffffffffffff, check: 0x995dc9bbdf1939fa, residue: 0x49958c9abd7d353f }; |
| 556 |
assert_eq!(CRC_64_XZ, crate::algorithm::CRC_64_XZ); |
| 557 |
} |
| 558 |
#[test] |
| 559 |
fn test_CRC_82_DARC() { |
| 560 |
pub const CRC_82_DARC: Algorithm<u128> = Algorithm { width: 82, poly: 0x0308c0111011401440411, init: 0x000000000000000000000, refin: true, refout: true, xorout: 0x000000000000000000000, check: 0x09ea83f625023801fd612, residue: 0x000000000000000000000 }; |
| 561 |
assert_eq!(CRC_82_DARC, crate::algorithm::CRC_82_DARC); |
| 562 |
} |