1 | export declare const sha256Str: (str: string) => Promise<string>;
|
2 | export declare const hash: {
|
3 | sha256: (bytes: Uint8Array) => Promise<Uint8Array>;
|
4 | sha256Str: (str: string) => Promise<string>;
|
5 | };
|
6 | export declare const aes: {
|
7 | encrypt: (bytes: Uint8Array, key: string) => Promise<Uint8Array>;
|
8 | decrypt: (bytes: Uint8Array, key: string) => Promise<Uint8Array>;
|
9 | genKeyStr: () => Promise<string>;
|
10 | decryptGCM: (encrypted: string, keyStr: string, ivStr: string) => Promise<string>;
|
11 | };
|
12 | export declare const rsa: {
|
13 | verify: (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
|
14 | };
|
15 | export declare const ed25519: {
|
16 | verify: (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
|
17 | };
|
18 | export declare const keystore: {
|
19 | publicReadKey: () => Promise<string>;
|
20 | publicWriteKey: () => Promise<string>;
|
21 | decrypt: (encrypted: string) => Promise<string>;
|
22 | sign: (message: string, charSize: number) => Promise<string>;
|
23 | importSymmKey: (key: string, name: string) => Promise<void>;
|
24 | exportSymmKey: (name: string) => Promise<string>;
|
25 | keyExists: (keyName: string) => Promise<boolean>;
|
26 | getAlg: () => Promise<string>;
|
27 | clear: () => Promise<void>;
|
28 | };
|