Tidied up Streebog operation, splitting out GOST hash into a separate op.
This commit is contained in:
1 parent
666c447e36
commit
99f4091c1a
11 files changed
+33
-77
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -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');
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user