Aes_dec(t)
Decrypts the data using the previously-created AES key.
Syntax
Aes_dec(t);
Arguments
| Name | Description |
|---|---|
|
t |
A table which specifies the message, key, and key size that was used to decrypt. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
t={};
t["message"] = "MICK-TEST";
t["key"] = "aaaaaaaaaabbbbbb"
t["size"]= 128 -- 128, 192, or 256, the corresponding key length is 16, 24, and 32
enc = aes_enc(t)
--aes decryption
a={};
a["message"] = enc;
a["key"] = "aaaaaaaaaabbbbbb"
a["size"]= 128;
dec = aes_dec(a);
debug("key length %s decrypted is %s\n",”128” ,dec);
}
Note:
- Message: a string which will be decrypted
- Key: a string to decrypt str
- Size: must be 128, 192, or 256, the corresponding key length is 16, 24, and 32
Supported Version
FortiADC version 5.2.x and later.