Home
last modified time | relevance | path

Searched refs:outputEncoding (Results 1 – 5 of 5) sorted by relevance

/third_party/node/lib/internal/crypto/
Dhash.js117 Hash.prototype.digest = function digest(outputEncoding) { argument
121 outputEncoding = outputEncoding || getDefaultEncoding();
124 const ret = this[kHandle].digest(`${outputEncoding}`);
148 Hmac.prototype.digest = function digest(outputEncoding) { argument
150 outputEncoding = outputEncoding || getDefaultEncoding();
154 return outputEncoding === 'buffer' ? buf : buf.toString(outputEncoding);
158 const ret = this[kHandle].digest(`${outputEncoding}`);
Dcipher.js174 Cipher.prototype.update = function update(data, inputEncoding, outputEncoding) { argument
177 outputEncoding = outputEncoding || encoding;
188 if (outputEncoding && outputEncoding !== 'buffer') {
189 this._decoder = getDecoder(this._decoder, outputEncoding);
197 Cipher.prototype.final = function final(outputEncoding) { argument
198 outputEncoding = outputEncoding || getDefaultEncoding();
201 if (outputEncoding && outputEncoding !== 'buffer') {
202 this._decoder = getDecoder(this._decoder, outputEncoding);
/third_party/node/test/parallel/
Dtest-crypto-authenticated.js150 const outputEncoding = test.plainIsHex ? 'hex' : 'ascii'; constant
152 let msg = decrypt.update(test.ct, 'hex', outputEncoding);
154 msg += decrypt.final(outputEncoding);
/third_party/node/doc/api/
Dcrypto.md528 ### `cipher.final([outputEncoding])`
534 * `outputEncoding` {string} The [encoding][] of the return value.
536 If `outputEncoding` is specified, a string is
537 returned. If an `outputEncoding` is not provided, a [`Buffer`][] is returned.
605 ### `cipher.update(data[, inputEncoding][, outputEncoding])`
617 * `outputEncoding` {string} The [encoding][] of the return value.
627 The `outputEncoding` specifies the output format of the enciphered
628 data. If the `outputEncoding`
630 `outputEncoding` is provided, a [`Buffer`][] is returned.
838 ### `decipher.final([outputEncoding])`
[all …]
/third_party/typescript/tests/baselines/reference/user/
Dadonis-framework.log38 …Overload 1 of 4, '(data: ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): str…
40 …Overload 2 of 4, '(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): s…
47 …Overload 1 of 4, '(data: ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): str…
49 …Overload 2 of 4, '(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): s…