Skip to content

Commit e93a147

Browse files
authored
Update README.md
Change AES Encryption functions return type to Promise (typo that costed me some troubles ^^)
1 parent b1f3505 commit e93a147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ The word lists are exported as a `wordlist` variable in each of these submodules
302302
## AES Encryption
303303

304304
```ts
305-
function encrypt(msg: Uint8Array, key: Uint8Array, iv: Uint8Array, mode = "aes-128-ctr", pkcs7PaddingEnabled = true): Uint8Array;
306-
function decrypt(cypherText: Uint8Array, key: Uint8Array, iv: Uint8Array, mode = "aes-128-ctr", pkcs7PaddingEnabled = true): Uint8Array
305+
function encrypt(msg: Uint8Array, key: Uint8Array, iv: Uint8Array, mode = "aes-128-ctr", pkcs7PaddingEnabled = true): Promise<Uint8Array>;
306+
function decrypt(cypherText: Uint8Array, key: Uint8Array, iv: Uint8Array, mode = "aes-128-ctr", pkcs7PaddingEnabled = true): Promise<Uint8Array>;
307307
```
308308

309309
The `aes` submodule contains encryption and decryption functions implementing

0 commit comments

Comments
 (0)