Home
last modified time | relevance | path

Searched refs:createHash (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-crypto-hash.js16 const a1 = crypto.createHash('sha1').update('Test123').digest('hex');
17 const a2 = crypto.createHash('sha256').update('Test123').digest('base64');
18 const a3 = crypto.createHash('sha512').update('Test123').digest(); // buffer
19 const a4 = crypto.createHash('sha1').update('Test123').digest('buffer');
22 let a5 = crypto.createHash('sha512');
26 let a6 = crypto.createHash('sha512');
33 let a7 = crypto.createHash('sha512');
37 let a8 = crypto.createHash('sha512');
45 const a0 = crypto.createHash(cryptoType).update('Test123').digest(digest);
91 const h1 = crypto.createHash('sha1').update('Test123').digest('hex');
[all …]
Dtest-crypto-stream.js50 const hasher1 = crypto.createHash('md5');
60 crypto.createHash('md5').unpipe({});
61 crypto.createHash('md5').setEncoding('utf8');
62 crypto.createHash('md5').pause();
63 crypto.createHash('md5').resume();
Dtest-crypto-from-binary.js53 const hash1_converted = crypto.createHash('sha1')
56 const hash1_direct = crypto.createHash('sha1').update(datum1).digest('hex');
60 const hash2_converted = crypto.createHash('sha1')
63 const hash2_direct = crypto.createHash('sha1').update(datum2).digest('hex');
Dtest-crypto-binary-default.js368 const a1 = crypto.createHash('sha1').update('Test123').digest('hex');
369 const a2 = crypto.createHash('sha256').update('Test123').digest('base64');
370 const a3 = crypto.createHash('sha512').update('Test123').digest(); // binary
371 const a4 = crypto.createHash('sha1').update('Test123').digest('buffer');
374 const a0 = crypto.createHash('md5').update('Test123').digest('latin1');
403 const h1 = crypto.createHash('sha1').update('Test123').digest('hex');
404 const h2 = crypto.createHash('sha1').update('Test').update('123')
412 const sha1Hash = crypto.createHash('sha1');
428 crypto.createHash('xyzzy');
576 () => crypto.createHash('sha1').update({ foo: 'bar' }),
Dtest-crypto-lazy-transform-writable.js11 const hasher1 = crypto.createHash('sha256');
12 const hasher2 = crypto.createHash('sha256');
Dtest-crypto.js97 () => crypto.createHash('sha1').update({ foo: 'bar' }),
158 crypto.createHash(algo);
206 () => crypto.createHash('sha1').update('0', 'hex'),
297 const hash = crypto.createHash('sha256', options);
Dtest-policy-integrity-flag.js18 const emptyHash = crypto.createHash('sha512');
21 const policyHash = crypto.createHash('sha512');
Dtest-zlib-random-byte-pipes.js43 this._hasher = crypto.createHash('sha1');
118 this._hasher = crypto.createHash('sha1');
Dtest-webcrypto-digest.js11 const { createHash } = require('crypto');
41 createHash(test[1]).update(kData).digest().toString('hex');
Dtest-crypto-hash-stream-pipe.js33 const h = crypto.createHash('sha3-512');
/third_party/node/deps/npm/node_modules/@npmcli/metavuln-calculator/lib/
Dhash.js1 const { createHash } = require('crypto')
3 module.exports = ({ name, source }) => createHash('sha512')
/third_party/typescript/src/testRunner/unittests/tscWatch/
Dincremental.ts162 version: system.createHash(libFile.content),
163 signature: system.createHash(libFile.content),
168 version: system.createHash(file1.content),
169 signature: system.createHash(file1.content),
174 version: system.createHash(fileModified.content),
175 signature: system.createHash(fileModified.content),
/third_party/node/test/addons/openssl-providers/
Dproviders.cjs10 const { createHash, getCiphers, getHashes } = require('node:crypto');
57 createHash(hash);
71 assert.throws(() => { createHash(hash); }, { code: 'ERR_OSSL_EVP_UNSUPPORTED' });
/third_party/node/benchmark/crypto/
Dwebcrypto-digest.js5 createHash,
33 createHash(method).update(data).digest();
Dhash-stream-throughput.js50 const h = crypto.createHash(algo);
64 const h = crypto.createHash(algo);
Dhash-stream-creation.js53 const h = crypto.createHash(algo);
67 const h = crypto.createHash(algo);
/third_party/node/deps/npm/node_modules/@sigstore/core/dist/
Dcrypto.js34 const hash = crypto_1.default.createHash(algorithm);
43 const hash = crypto_1.default.createHash(SHA256_ALGORITHM);
/third_party/node/tools/
Dtest-npm-package.js20 const { createHash } = require('crypto');
41 const srcHash = createHash('md5').update(srcDir).digest('hex');
/third_party/node/deps/npm/node_modules/@tufjs/models/dist/
Dfile.js48 hash = crypto_1.default.createHash(key);
125 acc[key] = crypto_1.default.createHash(key);
Drole.js109 const hasher = crypto_1.default.createHash('sha256');
227 const hasher = crypto_1.default.createHash('sha256');
/third_party/node/deps/npm/node_modules/ssri/lib/
Dindex.js41 this.hashes = this.algorithms.map(crypto.createHash)
419 const digest = crypto.createHash(algo).update(data).digest('base64')
469 const digest = crypto.createHash(algorithm).update(data).digest('base64')
531 const hashes = algorithms.map(crypto.createHash)
/third_party/node/test/fixtures/policy/crypto-hash-tampering/
Dmain.js1 const h = require('crypto').createHash('sha384');
/third_party/node/lib/
Dcrypto.js132 function createHash(algorithm, options) { function
185 createHash, property
/third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/
Dretire-path.js6 crypto.createHash('sha1')
/third_party/node/test/pummel/
Dtest-crypto-dh-hash.js55 const hash2 = crypto.createHash('sha1')

1234