Lines Matching refs:algorithm
42 this.algorithm = match[1]
62 SPEC_ALGORITHMS.some(x => x === this.algorithm) &&
79 return `${this.algorithm}-${this.digest}${options}`
145 } else if (sri.algorithm && sri.digest) {
147 fullSri[sri.algorithm] = [sri]
162 if (hash.algorithm && hash.digest) {
163 const algo = hash.algorithm
174 if (obj.algorithm && obj.digest) {
184 function fromHex (hexDigest, algorithm, opts) { argument
190 `${algorithm}-${
209 if (hash.algorithm && hash.digest) {
210 const algo = hash.algorithm
249 const algorithm = sri.pickAlgorithm(opts)
250 const digest = crypto.createHash(algorithm).update(data).digest('base64')
251 const newSri = parse({algorithm, digest}) property
263 …const err = new Error(`Integrity checksum failed when using ${algorithm}: Wanted ${sri}, but got $…
267 err.algorithm = algorithm
297 const algorithm = goodSri && sri.pickAlgorithm(opts)
298 const digests = goodSri && sri[algorithm]
301 new Set(opts.algorithms.concat(algorithm ? [algorithm] : []))
328 …const err = new Error(`${sri} integrity checksum failed when using ${algorithm}: wanted ${digests}…
332 err.algorithm = algorithm
366 if (hash.algorithm && hash.digest) {
367 const algo = hash.algorithm