Lines Matching refs:out

28093 EncoderBuffer.prototype.join = function join(out, offset) {
28094 if (!out) out = Buffer.alloc(this.length);
28096 if (this.length === 0) return out;
28100 item.join(out, offset);
28104out[offset] = this.value;else if (typeof this.value === 'string') out.write(this.value, offset);el…
28108 return out;
29351 var out = new Array(size);
29353 for (var _i5 = out.length - 1; _i5 >= 0; _i5--) {
29354 out[_i5] = num & 0xff;
29358 if (out[0] & 0x80) {
29359 out.unshift(0);
29362 return this._createEncoderBuffer(Buffer.from(out));
29425 var out = ['-----BEGIN ' + options.label + '-----'];
29428 out.push(p.slice(i, i + 64));
29431 out.push('-----END ' + options.label + '-----');
29432 return out.join('\n');
29825 var out;
29828 out = '';
29838 out = zeros[6 - word.length] + word + out;
29840 out = word + out;
29852 out = carry.toString(16) + out;
29855 while (out.length % padding !== 0) {
29856 out = '0' + out;
29860 out = '-' + out;
29863 return out;
29871 out = '';
29880 out = zeros[groupSize - r.length] + r + out;
29882 out = r + out;
29887 out = '0' + out;
29890 while (out.length % padding !== 0) {
29891 out = '0' + out;
29895 out = '-' + out;
29898 return out;
30409 function smallMulTo(self, num, out) {
30410 out.negative = num.negative ^ self.negative;
30412 out.length = len;
30420 out.words[0] = lo;
30438 out.words[k] = rword | 0;
30443 out.words[k] = carry | 0;
30445 out.length--;
30448 return out.strip();
30454 var comb10MulTo = function comb10MulTo(self, num, out) {
30457 var o = out.words;
30522 out.negative = self.negative ^ num.negative;
30523 out.length = 19;
31041 out.length++;
31044 return out;
31052 function bigMulTo(self, num, out) {
31053 out.negative = num.negative ^ self.negative;
31054 out.length = self.length + num.length;
31058 for (var k = 0; k < out.length - 1; k++) {
31080 out.words[k] = rword;
31086 out.words[k] = carry;
31088 out.length--;
31091 return out.strip();
31094 function jumboMulTo(self, num, out) {
31096 return fftm.mulp(self, num, out);
31099 BN.prototype.mulTo = function mulTo(num, out) {
31104 res = comb10MulTo(this, num, out);
31106 res = smallMulTo(this, num, out);
31108 res = bigMulTo(this, num, out);
31110 res = jumboMulTo(this, num, out);
31264 FFTM.prototype.mulp = function mulp(x, y, out) {
31276 var rmws = out.words;
31293 out.negative = x.negative ^ y.negative;
31294 out.length = x.length + y.length;
31295 return out.strip();
31300 var out = new BN(null);
31301 out.words = new Array(this.length + num.length);
31302 return this.mulTo(num, out);
31307 var out = new BN(null);
31308 out.words = new Array(this.length + num.length);
31309 return jumboMulTo(this, num, out);
32443 MPrime.prototype.split = function split(input, out) {
32444 input.iushrn(this.n, 0, out);
33448 var out;
33451 out = '';
33461 out = zeros[6 - word.length] + word + out;
33463 out = word + out;
33475 out = carry.toString(16) + out;
33478 while (out.length % padding !== 0) {
33479 out = '0' + out;
33483 out = '-' + out;
33486 return out;
33494 out = '';
33503 out = zeros[groupSize - r.length] + r + out;
33505 out = r + out;
33510 out = '0' + out;
33513 while (out.length % padding !== 0) {
33514 out = '0' + out;
33518 out = '-' + out;
33521 return out;
34093 function smallMulTo(self, num, out) {
34094 out.negative = num.negative ^ self.negative;
34096 out.length = len;
34104 out.words[0] = lo;
34122 out.words[k] = rword | 0;
34127 out.words[k] = carry | 0;
34129 out.length--;
34132 return out._strip();
34138 var comb10MulTo = function comb10MulTo(self, num, out) {
34141 var o = out.words;
34206 out.negative = self.negative ^ num.negative;
34207 out.length = 19;
34725 out.length++;
34728 return out;
34736 function bigMulTo(self, num, out) {
34737 out.negative = num.negative ^ self.negative;
34738 out.length = self.length + num.length;
34742 for (var k = 0; k < out.length - 1; k++) {
34764 out.words[k] = rword;
34770 out.words[k] = carry;
34772 out.length--;
34775 return out._strip();
34778 function jumboMulTo(self, num, out) {
34782 return bigMulTo(self, num, out);
34785 BN.prototype.mulTo = function mulTo(num, out) {
34790 res = comb10MulTo(this, num, out);
34792 res = smallMulTo(this, num, out);
34794 res = bigMulTo(this, num, out);
34796 res = jumboMulTo(this, num, out);
34950 FFTM.prototype.mulp = function mulp(x, y, out) {
34962 var rmws = out.words;
34979 out.negative = x.negative ^ y.negative;
34980 out.length = x.length + y.length;
34981 return out._strip();
34986 var out = new BN(null);
34987 out.words = new Array(this.length + num.length);
34988 return this.mulTo(num, out);
34993 var out = new BN(null);
34994 out.words = new Array(this.length + num.length);
34995 return jumboMulTo(this, num, out);
36145 MPrime.prototype.split = function split(input, out) {
36146 input.iushrn(this.n, 0, out);
36690 var out = new Array(len);
36693 out[i] = buf.readUInt32BE(i * 4);
36696 return out;
36861 var out = this.encryptBlockRaw(M);
36863 buf.writeUInt32BE(out[0], 0);
36864 buf.writeUInt32BE(out[1], 4);
36865 buf.writeUInt32BE(out[2], 8);
36866 buf.writeUInt32BE(out[3], 12);
36876 var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds);
36878 buf.writeUInt32BE(out[0], 0);
36879 buf.writeUInt32BE(out[3], 4);
36880 buf.writeUInt32BE(out[2], 8);
36881 buf.writeUInt32BE(out[1], 12);
36911 var out = 0;
36912 if (a.length !== b.length) out++;
36916 out += a[i] ^ b[i];
36919 return out;
36944 var out = Buffer.from(self._finID);
36945 incr32(out);
36946 return out;
36984 var out = this._mode.encrypt(this, chunk);
36989 this._ghash.update(out);
36993 return out;
37080 var out = [];
37084 out.push(thing);
37087 return Buffer.concat(out);
37114 var out;
37118 out = this.cache.slice(0, 16);
37120 return out;
37124 out = this.cache.slice(0, 16);
37126 return out;
37218 var out = [];
37222 out.push(thing);
37225 return Buffer.concat(out);
37263 var out = this.cache.slice(0, 16);
37265 return out;
37321 function fromArray(out) {
37323 buf.writeUInt32BE(out[0] >>> 0, 0);
37324 buf.writeUInt32BE(out[1] >>> 0, 4);
37325 buf.writeUInt32BE(out[2] >>> 0, 8);
37326 buf.writeUInt32BE(out[3] >>> 0, 12);
37441 var out = self._cipher.decryptBlock(block);
37443 return xor(out, pad);
37455 var out = xor(data, self._cache);
37457 self._prev = Buffer.concat([self._prev, decrypt ? data : out]);
37458 return out;
37462 var out = Buffer.allocUnsafe(0);
37473 out = Buffer.concat([out, encryptStart(self, data.slice(0, len), decrypt)]);
37476 out = Buffer.concat([out, encryptStart(self, data, decrypt)]);
37481 return out;
37493 var out = 0;
37500 out += (value & 0x80) >> i % 8;
37504 return out;
37510 var out = Buffer.allocUnsafe(buffer.length);
37514 out[i] = buffer[i] << 1 | buffer[i + 1] >> 7;
37517 return out;
37522 var out = Buffer.allocUnsafe(len);
37526 out[i] = encryptByte(self, chunk[i], decrypt);
37529 return out;
37540 var out = pad[0] ^ byteParam;
37541 self._prev = Buffer.concat([self._prev.slice(1), Buffer.from([decrypt ? byteParam : out])]);
37542 return out;
37547 var out = Buffer.allocUnsafe(len);
37551 out[i] = encryptByte(self, chunk[i], decrypt);
37554 return out;
37567 var out = self._cipher.encryptBlockRaw(self._prev);
37570 return out;
37581 var out = getBlock(self);
37584 self._cache.writeUInt32BE(out[0], offset + 0);
37586 self._cache.writeUInt32BE(out[1], offset + 4);
37588 self._cache.writeUInt32BE(out[2], offset + 8);
37590 self._cache.writeUInt32BE(out[3], offset + 12);
38437 var out = crt(pad, priv);
38438 return out;
38446 var out = key.sign(hash);
38447 return Buffer.from(out.toDER());
38520 var out = Buffer.from(bits.toArray());
38522 if (out.length < q.byteLength()) {
38523 var zeros = Buffer.alloc(q.byteLength() - out.length);
38524 out = Buffer.concat([zeros, out]);
38527 return out;
38608 var out = padNum < 8 ? 1 : 0;
38610 if (sig.length !== pad.length) out = 1;
38614 out |= sig[i] ^ pad[i];
38617 return out === 0;
39830 var out = '';
39833 out += toHex(buf[i]);
39836 return out;
40660 var out = this._decoder.write(value);
40663 out += this._decoder.end();
40666 return out;
43659 var out = otherPub.mul(this.keys.getPrivate()).getX();
43660 return formatReturnValue(out, enc, this.curveType.byteLength);
44648 proto._update = function _update(inp, inOff, out, outOff) {
44658 superProto._update.call(this, iv, 0, out, outOff);
44661 iv[i] = out[outOff + i];
44664 superProto._update.call(this, inp, inOff, out, outOff);
44667 out[outOff + i] ^= iv[i];
44715 Cipher.prototype._flushBuffer = function _flushBuffer(out, off) {
44716 this._update(this.buffer, 0, out, off);
44726 var out = new Array(count * this.blockSize);
44730 if (this.bufferOff === this.buffer.length) outputOff += this._flushBuffer(out, outputOff);
44737 this._update(data, inputOff, out, outputOff);
44747 return out;
44754 …var out = new Array(count * this.blockSize); // TODO(indutny): optimize it, this is far from optim…
44758 outputOff += this._flushBuffer(out, outputOff);
44763 return out;
44786 var out = new Array(this.blockSize);
44788 this._update(this.buffer, 0, out, 0);
44790 return out;
44799 var out = new Array(this.blockSize);
44801 this._flushBuffer(out, 0);
44803 return this._unpad(out);
44855 DES.prototype._update = function _update(inp, inOff, out, outOff) {
44866 utils.writeUInt32BE(out, l, outOff);
44867 utils.writeUInt32BE(out, r, outOff + 4);
44890 DES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) {
44909 utils.rip(r, l, out, off);
44912 DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {
44931 utils.rip(l, r, out, off);
44989 EDE.prototype._update = function _update(inp, inOff, out, outOff) {
44992 state.ciphers[0]._update(inp, inOff, out, outOff);
44994 state.ciphers[1]._update(out, outOff, out, outOff);
44996 state.ciphers[2]._update(out, outOff, out, outOff);
45017 exports.ip = function ip(inL, inR, out, off) {
45045 out[off + 0] = outL >>> 0;
45046 out[off + 1] = outR >>> 0;
45049 exports.rip = function rip(inL, inR, out, off) {
45071 out[off + 0] = outL >>> 0;
45072 out[off + 1] = outR >>> 0;
45075 exports.pc1 = function pc1(inL, inR, out, off) {
45120 out[off + 0] = outL >>> 0;
45121 out[off + 1] = outR >>> 0;
45132 exports.pc2 = function pc2(inL, inR, out, off) {
45147 out[off + 0] = outL >>> 0;
45148 out[off + 1] = outR >>> 0;
45151 exports.expand = function expand(r, out, off) {
45167 out[off + 0] = outL >>> 0;
45168 out[off + 1] = outR >>> 0;
45174 var out = 0;
45179 out <<= 4;
45180 out |= sb;
45186 out <<= 4;
45187 out |= sb;
45190 return out >>> 0;
45196 var out = 0;
45199 out <<= 1;
45200 out |= num >>> permuteTable[i] & 0x1;
45203 return out >>> 0;
45213 var out = [];
45216 out.push(str.slice(i, i + group));
45219 return out.join(' ');
45421 var out = new Buffer(secret.toArray());
45424 if (out.length < prime.length) {
45425 var front = new Buffer(prime.length - out.length);
45427 out = Buffer.concat([front, out]);
45430 return out;
52248 var out = {
52479 module.exports = out;
53788 var str, i, out, c, c_len;
53795 for (out = 0, i = 0; i < len;) {
53799 utf16buf[out++] = c;
53806 utf16buf[out++] = 0xfffd;
53821 utf16buf[out++] = 0xfffd;
53826 utf16buf[out++] = c;
53829 utf16buf[out++] = 0xd800 | c >> 10 & 0x3ff;
53830 utf16buf[out++] = 0xdc00 | c & 0x3ff;
53835 if (utf16buf.length !== out) {
53837 utf16buf = utf16buf.subarray(0, out);
53839 utf16buf.length = out;
55430 var out = {};
55433 out.value = func(value);
55434 out.status = 'success';
55436 out.status = 'error';
55437 out.value = e;
55440 return out;
62847 var i, out, c, c_len;
62854 for (out = 0, i = 0; i < len;) {
62858 utf16buf[out++] = c;
62865 utf16buf[out++] = 0xfffd;
62880 utf16buf[out++] = 0xfffd;
62885 utf16buf[out++] = c;
62888 utf16buf[out++] = 0xd800 | c >> 10 & 0x3ff;
62889 utf16buf[out++] = 0xdc00 | c & 0x3ff;
62893 return buf2binstring(utf16buf, out);
70073 var out = [];
70075 out.push(cipher.update(cipherText));
70076 out.push(cipher.final());
70077 decrypted = Buffer.concat(out);
70226 var out = [];
70227 out.push(cipher.update(cipherText));
70228 out.push(cipher.final());
70229 return Buffer.concat(out);
70308 promise.then(function (out) {
70310 callback(null, out);
70330 var out;
70333 out = sync(password, salt, iterations, keylen, digest);
70338 callback(null, out);
70832 var out = Buffer.allocUnsafe(4);
70833 out.writeUInt32BE(c, 0);
70834 return out;
71073 var out = Buffer.allocUnsafe(len);
71088 out[i++] = num;
71092 return out;
73144 var out = [];
73147 out.push(current);
73151 return out;
80618 var out = [];
80621 out.push(current);
80625 return out;