1 | export declare const encrypt: (data: Uint8Array, keyStr: string) => Promise<Uint8Array>;
|
2 | export declare const decrypt: (encrypted: Uint8Array, keyStr: string) => Promise<Uint8Array>;
|
3 | export declare const genKeyStr: () => Promise<string>;
|
4 | export declare const decryptGCM: (encrypted: string, keyStr: string, ivStr: string) => Promise<string>;
|
5 | export declare const sha256: (bytes: Uint8Array) => Promise<Uint8Array>;
|
6 | export declare const rsaVerify: (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
|
7 | export declare const ed25519Verify: (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
|
8 | export declare const ksPublicReadKey: () => Promise<string>;
|
9 | export declare const ksPublicWriteKey: () => Promise<string>;
|
10 | export declare const ksDecrypt: (encrypted: string) => Promise<string>;
|
11 | export declare const ksSign: (message: string, charSize: number) => Promise<string>;
|
12 | export declare const ksImportSymmKey: (key: string, name: string) => Promise<void>;
|
13 | export declare const ksExportSymmKey: (name: string) => Promise<string>;
|
14 | export declare const ksKeyExists: (name: string) => Promise<boolean>;
|
15 | export declare const ksGetAlg: () => Promise<string>;
|
16 | export declare const ksClear: () => Promise<void>;
|