MCPcopy
hub / github.com/angular/angular / sha1Binary

Function sha1Binary

packages/service-worker/cli/sha1.ts:26–29  ·  view source on GitHub ↗
(buffer: ArrayBuffer)

Source from the content-addressed store, hash-verified

24}
25
26export function sha1Binary(buffer: ArrayBuffer): string {
27 const words32 = arrayBufferToWords32(buffer, Endian.Big);
28 return _sha1(words32, buffer.byteLength * 8);
29}
30
31function _sha1(words32: number[], len: number): string {
32 const w: number[] = [];

Callers 1

hashMethod · 0.90

Calls 2

arrayBufferToWords32Function · 0.70
_sha1Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…