react / wstein / node_modules / browserify / node_modules / shasum / node_modules / sha.js / sha384.js
80538 viewsvar inherits = require('inherits')1var SHA512 = require('./sha512');2var Hash = require('./hash')34var W = new Array(160)56function Sha384() {7this.init()8this._w = W910Hash.call(this, 128, 112)11}1213inherits(Sha384, SHA512)1415Sha384.prototype.init = function () {16this._a = 0xcbbb9d5d|017this._b = 0x629a292a|018this._c = 0x9159015a|019this._d = 0x152fecd8|020this._e = 0x67332667|021this._f = 0x8eb44a87|022this._g = 0xdb0c2e0d|023this._h = 0x47b5481d|02425this._al = 0xc1059ed8|026this._bl = 0x367cd507|027this._cl = 0x3070dd17|028this._dl = 0xf70e5939|029this._el = 0xffc00b31|030this._fl = 0x68581511|031this._gl = 0x64f98fa7|032this._hl = 0xbefa4fa4|03334return this35}3637Sha384.prototype._hash = function () {38var H = new Buffer(48)3940function writeInt64BE(h, l, offset) {41H.writeInt32BE(h, offset)42H.writeInt32BE(l, offset + 4)43}4445writeInt64BE(this._a, this._al, 0)46writeInt64BE(this._b, this._bl, 8)47writeInt64BE(this._c, this._cl, 16)48writeInt64BE(this._d, this._dl, 24)49writeInt64BE(this._e, this._el, 32)50writeInt64BE(this._f, this._fl, 40)5152return H53}5455module.exports = Sha384565758