UNPKG

947 BSource Map (JSON)View Raw
1{"version":3,"file":"hasher.js","names":["Hasher","constructor","exports"],"sources":["../src/hasher.ts"],"sourcesContent":["/**\n * Hasher object.\n */\nexport abstract class Hasher {\n\t/**\n\t * Hasher constructor.\n\t */\n\tconstructor() {}\n\n\t/**\n\t * The number of bytes in the hash digest.\n\t *\n\t * @returns Byte size.\n\t */\n\tpublic abstract get bytes(): number;\n\n\t/**\n\t * Reset digest.\n\t */\n\tpublic abstract reset(): void;\n\n\t/**\n\t * Update with more data.\n\t *\n\t * @param data Data to be hashed.\n\t */\n\tpublic abstract update(data: Readonly<Uint8Array>): void;\n\n\t/**\n\t * Finish digest.\n\t *\n\t * @returns Digest data.\n\t */\n\tpublic abstract digest(): Uint8Array;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAeA,MAAM,CAAC;EAC5B;AACD;AACA;EACCC,WAAWA,CAAA,EAAG,CAAC;;EAEf;AACD;AACA;AACA;AACA;;EAGC;AACD;AACA;;EAGC;AACD;AACA;AACA;AACA;;EAGC;AACD;AACA;AACA;AACA;AAEA;AAACC,OAAA,CAAAF,MAAA,GAAAA,MAAA"}
\No newline at end of file