rittenhop-ghost/versions/5.94.2/node_modules/lib0/hash/rabin.d.ts

27 lines
820 B
TypeScript

export const StandardIrreducible8: Uint8Array;
export const StandardIrreducible16: Uint8Array;
export const StandardIrreducible32: Uint8Array;
export const StandardIrreducible64: Uint8Array;
export const StandardIrreducible128: Uint8Array;
export class RabinEncoder {
/**
* @param {Uint8Array} m assert(m[0] === 1)
*/
constructor(m: Uint8Array);
m: Uint8Array;
blen: number;
bs: Uint8Array;
cache: Uint8Array;
/**
* This describes the position of the most significant byte (starts with 0 and increases with
* shift)
*/
bpos: number;
/**
* @param {number} byte
*/
write(byte: number): void;
getFingerprint(): Uint8Array;
}
export function fingerprint(irreducible: Uint8Array, data: Uint8Array): Uint8Array;
//# sourceMappingURL=rabin.d.ts.map