[DEV-9619] Return sha256
This fixes the implementation of sha256 to be compatible with our system.main
parent
f667a1a58e
commit
2901f06318
|
@ -23,7 +23,7 @@
|
|||
* @license MIT
|
||||
*/
|
||||
/*jslint bitwise: true */
|
||||
(function () {
|
||||
var sha256 = (function () {
|
||||
'use strict';
|
||||
|
||||
var ERROR = 'input is invalid type';
|
||||
|
@ -520,15 +520,5 @@
|
|||
exports.sha256.hmac = createHmacMethod();
|
||||
exports.sha224.hmac = createHmacMethod(true);
|
||||
|
||||
if (COMMON_JS) {
|
||||
module.exports = exports;
|
||||
} else {
|
||||
root.sha256 = exports.sha256;
|
||||
root.sha224 = exports.sha224;
|
||||
if (AMD) {
|
||||
define(function () {
|
||||
return exports;
|
||||
});
|
||||
}
|
||||
}
|
||||
return exports.sha256;
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue