Skip to content

Commit

Permalink
Converted js files to mjs. Added test cases for hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
MShwed committed Apr 2, 2019
1 parent 37389a6 commit 4496d77
Show file tree
Hide file tree
Showing 15 changed files with 9,014 additions and 7,827 deletions.
5 changes: 2 additions & 3 deletions src/core/operations/Streebog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));

Expand Down
1,318 changes: 0 additions & 1,318 deletions src/core/vendor/Streebog.mjs

This file was deleted.

2,269 changes: 0 additions & 2,269 deletions src/core/vendor/streebog/gostCipher.js

This file was deleted.

Loading

0 comments on commit 4496d77

Please sign in to comment.