mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 01:06:16 -04:00
Added support for hashing version 1994 and 2012. Added S-Box selection for 1994 version. Added length selection
This commit is contained in:
parent
aef65620da
commit
37389a62c1
6 changed files with 78 additions and 33 deletions
8
src/core/vendor/streebog/gostCipher.js
vendored
8
src/core/vendor/streebog/gostCipher.js
vendored
|
@ -1,7 +1,9 @@
|
|||
/**
|
||||
* @file GOST 28147-89/GOST R 34.12-2015/GOST R 32.13-2015 Encryption Algorithm
|
||||
* @version 1.76
|
||||
* @copyright 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
* GOST 28147-89/GOST R 34.12-2015/GOST R 32.13-2015 Encryption Algorithm
|
||||
* 1.76
|
||||
* 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
*
|
||||
* Exported for CyberChef by mshwed [m@ttshwed.com]
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
12
src/core/vendor/streebog/gostCoding.js
vendored
12
src/core/vendor/streebog/gostCoding.js
vendored
|
@ -1,7 +1,9 @@
|
|||
/**
|
||||
* @file Coding algorithms: Base64, Hex, Int16, Chars, BER and PEM
|
||||
* @version 1.76
|
||||
* @copyright 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
* Coding algorithms: Base64, Hex, Int16, Chars, BER and PEM
|
||||
* version 1.76
|
||||
* 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
*
|
||||
* Exported for CyberChef by mshwed [m@ttshwed.com]
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -36,9 +38,7 @@
|
|||
* Module imports and exports
|
||||
*
|
||||
*/ // <editor-fold defaultstate="collapsed">
|
||||
if (typeof exports === 'object') {
|
||||
module.exports = factory(require('./gostCrypto'));
|
||||
}
|
||||
module.exports = factory(require('./gostCrypto'));
|
||||
// </editor-fold>
|
||||
|
||||
}(this, function (gostCrypto) {
|
||||
|
|
9
src/core/vendor/streebog/gostCrypto.js
vendored
9
src/core/vendor/streebog/gostCrypto.js
vendored
|
@ -1,7 +1,9 @@
|
|||
/**
|
||||
* @file Implementation Web Crypto interfaces for GOST algorithms
|
||||
* @version 1.76
|
||||
* @copyright 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
* Implementation Web Crypto interfaces for GOST algorithms
|
||||
* 1.76
|
||||
* 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
*
|
||||
* Exported for CyberChef by mshwed [m@ttshwed.com]
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -37,7 +39,6 @@
|
|||
*
|
||||
*/ // <editor-fold defaultstate="collapsed">
|
||||
module.exports = factory(require('./gostRandom'));
|
||||
|
||||
// </editor-fold>
|
||||
|
||||
}(this, function (GostRandom) {
|
||||
|
|
12
src/core/vendor/streebog/gostDigest.js
vendored
12
src/core/vendor/streebog/gostDigest.js
vendored
|
@ -1,7 +1,9 @@
|
|||
/**
|
||||
* @file GOST R 34.11-94 / GOST R 34.11-12 implementation
|
||||
* @version 1.76
|
||||
* @copyright 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
* GOST R 34.11-94 / GOST R 34.11-12 implementation
|
||||
* 1.76
|
||||
* 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
*
|
||||
* Exported for CyberChef by mshwed [m@ttshwed.com]
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -40,9 +42,7 @@
|
|||
* Module imports and exports
|
||||
*
|
||||
*/ // <editor-fold defaultstate="collapsed">
|
||||
if (typeof exports === 'object') {
|
||||
module.exports = factory(require('./gostRandom'), require('./gostCipher'));
|
||||
}
|
||||
module.exports = factory(require('./gostRandom'), require('./gostCipher'));
|
||||
// </editor-fold>
|
||||
|
||||
}(this, function (GostRandom, GostCipher) {
|
||||
|
|
12
src/core/vendor/streebog/gostRandom.js
vendored
12
src/core/vendor/streebog/gostRandom.js
vendored
|
@ -1,7 +1,9 @@
|
|||
/**
|
||||
* @file Implementation Web Crypto random generatore for GOST algorithms
|
||||
* @version 1.76
|
||||
* @copyright 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
* Implementation Web Crypto random generatore for GOST algorithms
|
||||
* 1.76
|
||||
* 2014-2016, Rudolf Nickolaev. All rights reserved.
|
||||
*
|
||||
* Exported for CyberChef by mshwed [m@ttshwed.com]
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -36,9 +38,7 @@
|
|||
* Module imports and exports
|
||||
*
|
||||
*/ // <editor-fold defaultstate="collapsed">
|
||||
if (typeof exports === 'object') {
|
||||
module.exports = factory();
|
||||
}
|
||||
module.exports = factory();
|
||||
// </editor-fold>
|
||||
|
||||
}(this, function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue