Converted js files to mjs. Added test cases for hashing

This commit is contained in:
mshwed 2019-04-02 09:41:49 -04:00
parent 37389a62c1
commit 4496d7762b
15 changed files with 9014 additions and 7827 deletions

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));