11#ifndef __TKL_SYMMETRY_H__
12#define __TKL_SYMMETRY_H__
14#include "tuya_cloud_types.h"
20typedef VOID_T* TKL_SYMMETRY_HANDLE;
141 const UINT8_T *input,
OPERATE_RET tkl_aes_create_init(TKL_SYMMETRY_HANDLE *ctx)
This function Create&initializes a aes context.
OPERATE_RET tkl_aes_setkey_dec(TKL_SYMMETRY_HANDLE ctx, const UINT8_T *key, UINT32_T keybits)
This function sets the decryption key.
OPERATE_RET tkl_aes_crypt_ecb(TKL_SYMMETRY_HANDLE ctx, INT32_T mode, size_t length, const UINT8_T *input, UINT8_T *output)
This function performs an AES encryption or decryption operation.
OPERATE_RET tkl_aes_setkey_enc(TKL_SYMMETRY_HANDLE ctx, const UINT8_T *key, UINT32_T keybits)
This function sets the encryption key.
OPERATE_RET tkl_aes_crypt_cbc(TKL_SYMMETRY_HANDLE ctx, INT32_T mode, size_t length, UINT8_T iv[16], const UINT8_T *input, UINT8_T *output)
This function performs an AES-CBC encryption or decryption operation on full blocks.
OPERATE_RET tkl_aes_free(TKL_SYMMETRY_HANDLE ctx)
This function releases and clears the specified AES context.