Skip to content

Commit

Permalink
open raw src code
Browse files Browse the repository at this point in the history
  • Loading branch information
remocons committed Feb 23, 2023
1 parent 8fa5498 commit 63b0628
Show file tree
Hide file tree
Showing 14 changed files with 1,095 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dist/boho.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/boho.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/boho.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/boho.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/boho.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/boho.mjs

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions lib/fast-sha256.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
export declare const digestLength: number;
export declare const blockSize: number;
export declare class Hash {
digestLength: number;
blockSize: number;
private state;
private temp;
private buffer;
private bufferLength;
private bytesHashed;
finished: boolean;
constructor();
reset(): this;
clean(): void;
update(data: Uint8Array, dataLength?: number): this;
finish(out: Uint8Array): this;
digest(): Uint8Array;
_saveState(out: Uint32Array): void;
_restoreState(from: Uint32Array, bytesHashed: number): void;
}
export declare class HMAC {
private inner;
private outer;
blockSize: number;
digestLength: number;
private istate;
private ostate;
constructor(key: Uint8Array);
reset(): this;
clean(): void;
update(data: Uint8Array): this;
finish(out: Uint8Array): this;
digest(): Uint8Array;
}
export declare function hash(data: Uint8Array): Uint8Array;
export default hash;
export declare function hmac(key: Uint8Array, data: Uint8Array): Uint8Array;
export declare function hkdf(key: Uint8Array, salt?: Uint8Array, info?: Uint8Array, length?: number): Uint8Array;
export declare function pbkdf2(password: Uint8Array, salt: Uint8Array, iterations: number, dkLen: number): Uint8Array;
Loading

0 comments on commit 63b0628

Please sign in to comment.