Tidied up Streebog operation, splitting out GOST hash into a separate op.

This commit is contained in:
n1474335 2019-07-03 17:23:45 +01:00
parent 666c447e36
commit 99f4091c1a
11 changed files with 33 additions and 77 deletions

View file

@ -1192,8 +1192,8 @@ function GostDigest(algorithm) // <editor-fold defaultstate="collapsed">
// Define chiper algorithm
this.sBox = (algorithm.sBox || (algorithm.procreator === 'SC' ? 'D-SC' : 'D-A')).toUpperCase();
if (!GostCipher)
GostCipher = root.GostCipher;
//if (!GostCipher)
// GostCipher = root.GostCipher;
if (!GostCipher)
throw new NotSupportedError('Object GostCipher not found');