[DEV-9619] Return sha256

This fixes the implementation of sha256 to be compatible with our
system.
main
Corey Vollmer 2022-07-18 13:59:38 -04:00
parent f667a1a58e
commit 2901f06318
1 changed files with 2 additions and 12 deletions

View File

@ -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;
})();