Converted js files to mjs. Added test cases for hashing

This commit is contained in:
mshwed committed 2019-04-02 09:41:49 -04:00
1 parent 37389a62c1
commit 4496d7762b
15 files changed
+9014 -7827

No files matched your search

+2 -3
View File
@@ -6,8 +6,8 @@
import Operation from "../Operation";
import OperationError from "../errors/OperationError";
import * as GostDigest from "../vendor/streebog/gostDigest";
import * as GostCoding from "../vendor/streebog/gostCoding";
import GostCoding from "../vendor/streebog/gostCoding";
import GostDigest from "../vendor/streebog/gostDigest";
/**
* Streebog operation
@@ -81,7 +81,6 @@ class Streebog extends Operation {
const gostDigest = new GostDigest({name: "GOST R 34.11", version, sBox, length });
const gostCoding = new GostCoding();
const decode = gostCoding.Chars.decode(input);
const hexEncode = gostCoding.Hex.encode(gostDigest.digest(decode));