fix: new version of hash-wasm

This commit is contained in:
ShareVB committed 2024-12-15 22:01:36 +01:00
1 parent b1dce63fac
commit a77ebf8309
2 files changed
-6

No files matched your search

-3
View File
@@ -5,7 +5,6 @@ import {
createBLAKE2s, // (bits?: number, key?: IDataType): Promise<IHasher> // default is 256 bits
createBLAKE3, // (bits?: number, key?: IDataType): Promise<IHasher> // default is 256 bits
createCRC32, // (): Promise<IHasher>
createCRC32C, // (): Promise<IHasher>
createKeccak, // (bits?: 224 | 256 | 384 | 512): Promise<IHasher> // default is 512 bits
createMD4, // (): Promise<IHasher>
createMD5, // (): Promise<IHasher>
@@ -42,7 +41,6 @@ async function getHashersAsync() {
BLAKE2s: await createBLAKE2s(), // (bits?: number, key?: IDataType): Promise<IHasher> // default is 256 bits
BLAKE3: await createBLAKE3(), // (bits?: number, key?: IDataType): Promise<IHasher> // default is 256 bits
CRC32: await createCRC32(), // (): Promise<IHasher>
CRC32C: await createCRC32C(), // (): Promise<IHasher>
Keccak_224: await createKeccak(224), // (bits?: 224 | 256 | 384 | 512): Promise<IHasher> // default is 512 bits
Keccak_256: await createKeccak(256), // (bits?: 224 | 256 | 384 | 512): Promise<IHasher> // default is 512 bits
Keccak_384: await createKeccak(384), // (bits?: 224 | 256 | 384 | 512): Promise<IHasher> // default is 512 bits
@@ -70,7 +68,6 @@ const defaultHashWasmValues = {
BLAKE2s: '',
BLAKE3: '',
CRC32: '',
CRC32C: '',
Keccak_224: '',
Keccak_256: '',
Keccak_384: '',
-3
View File
@@ -11,7 +11,6 @@ import {
blake2s,
blake3,
crc32,
crc32c,
createSHA256,
keccak,
pbkdf2,
@@ -45,7 +44,6 @@ const algoNames = Object.keys(algos) as AlgoNames[];
const algosWasm = {
adler32,
crc32,
crc32c,
blake2b,
blake2s,
blake3,
@@ -77,7 +75,6 @@ const hashText = (algo: AlgoNames, value: string) => formatWithEncoding(algos[al
const defaultHashWasmValues = {
adler32: '',
crc32: '',
crc32c: '',
blake2b: '',
blake2s: '',
blake3: '',