The AESDecrypt function decrypts the content of the buf variable using the key encryption key. The encrypted data must be obtained using the AESEncrypt function. The function returns a variable of the buf type with decrypted data.
The AESEncrypt function encrypts the content of a buf variable using the AES-256 algorithm. The key parameter is an encryption key. The function returns a variable of buf type with encrypted data. Use the AESDecrypt function to decrypt the data.