|
1 | 1 | declare module 'react-native-aes-crypto' {
|
2 |
| - function pbkdf2(password: string, salt: string, cost: number, length: number): Promise<string>; |
3 |
| - function encrypt(text: string, key: string, iv: string): Promise<string>; |
4 |
| - function decrypt(ciphertext: string, key: string, iv: string): Promise<string>; |
5 |
| - function hmac256(ciphertext: string, key: string): Promise<string>; |
6 |
| - function hmac512(ciphertext: string, key: string): Promise<string>; |
7 |
| - function randomKey(length: number): Promise<string>; |
8 |
| - function sha1(text: string): Promise<string>; |
9 |
| - function sha256(text: string): Promise<string>; |
10 |
| - function sha512(text: string): Promise<string>; |
| 2 | + function pbkdf2(password: string, salt: string, cost: number, length: number): Promise<string> |
| 3 | + function encrypt(text: string, key: string, iv: string, algorithm: string): Promise<string> |
| 4 | + function decrypt(ciphertext: string, key: string, iv: string): Promise<string> |
| 5 | + function hmac256(ciphertext: string, key: string): Promise<string> |
| 6 | + function hmac512(ciphertext: string, key: string): Promise<string> |
| 7 | + function randomKey(length: number): Promise<string> |
| 8 | + function sha1(text: string): Promise<string> |
| 9 | + function sha256(text: string): Promise<string> |
| 10 | + function sha512(text: string): Promise<string> |
11 | 11 | }
|
0 commit comments