2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-22 11:13:38 +00:00

Tweaks to various hashing functions to improve config options

This commit is contained in:
n1474335
2021-02-02 16:06:37 +00:00
parent 3ce3866000
commit 1b54584820
11 changed files with 104 additions and 34 deletions

View File

@@ -6,8 +6,8 @@
import Operation from "../Operation.mjs";
import Utils from "../Utils.mjs";
import Sm3 from "crypto-api/src/hasher/sm3";
import {toHex} from "crypto-api/src/encoder/hex";
import Sm3 from "crypto-api/src/hasher/sm3.mjs";
import {toHex} from "crypto-api/src/encoder/hex.mjs";
/**
* SM3 operation
@@ -35,7 +35,8 @@ class SM3 extends Operation {
{
name: "Rounds",
type: "number",
value: 64
value: 64,
min: 16
}
];
}