mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
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:
parent
fcecd029c7
commit
4e62aa6e1d
7 changed files with 1988 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue