Constructor
new AesCbcCipher(aesKey)
Parameters:
Name | Type | Description |
---|---|---|
aesKey |
SharedKey256 | AES shared key. |
Classes
Methods
decrypt(cipherText, iv) → {Uint8Array}
Parameters:
Name | Type | Description |
---|---|---|
cipherText |
Uint8Array | Cipher text to decrypt. |
iv |
Uint8Array | IV bytes. |
Returns:
Clear text.
- Type
- Uint8Array
encrypt(clearText, iv) → {Uint8Array}
Parameters:
Name | Type | Description |
---|---|---|
clearText |
Uint8Array | Clear text to encrypt. |
iv |
Uint8Array | IV bytes. |
Returns:
Cipher text.
- Type
- Uint8Array