aes_decrypt
Decrypt AES-encrypted data using hex-encoded key, ciphertext, and IV. Supports CBC and GCM modes.
Instructions
Decrypt AES ciphertext.
Args: key: Hex-encoded AES key. ciphertext: Hex-encoded ciphertext. iv: Hex-encoded initialization vector. mode: Encryption mode - 'CBC' or 'GCM' (default CBC).
Returns: Decrypted string.
Raises: ValueError: If key size is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iv | Yes | ||
| key | Yes | ||
| mode | No | CBC | |
| ciphertext | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |