The CRC Operation is implemented natively with all currently known CRC's. Old Operations (CRC8, CRC16 and CRC32) and their dependencies are removed

This commit is contained in:
r4mos 2025-03-02 01:51:09 +01:00
parent fcecd029c7
commit 4e62aa6e1d
7 changed files with 1988 additions and 23 deletions

View file

@ -349,6 +349,7 @@ class CRCChecksum extends Operation {
*/
run(input, args) {
const algorithm = args[0];
input = new Uint8Array(input);
switch (algorithm) {
case "CRC-3/GSM": return this.crc(3n, input, 0x3n, 0x0n, false, false, 0x7n);