22#ifndef _AESCMAC_AES_H_
23#define _AESCMAC_AES_H_
31#include <openssl/aes.h>
35#define AES_BLOCK_SIZE 16
44 BCRYPT_ALG_HANDLE hAlgCBC;
45 BCRYPT_ALG_HANDLE hAlgECB;
46 BCRYPT_KEY_HANDLE hKeyCBC;
47 BCRYPT_KEY_HANDLE hKeyECB;
58#define YH_INTERNAL __attribute__((visibility("hidden")))
uint8_t YH_INTERNAL aes_set_encrypt_key(uint8_t *key, uint16_t key_len, aes_context *ctx)
void YH_INTERNAL aes_remove_padding(uint8_t *in, uint16_t *len)
uint8_t YH_INTERNAL aes_set_decrypt_key(uint8_t *key, uint16_t key_len, aes_context *ctx)
void YH_INTERNAL aes_add_padding(uint8_t *in, uint16_t *len)
uint8_t YH_INTERNAL aes_cbc_decrypt(uint8_t *in, uint8_t *out, uint16_t len, uint8_t *iv, aes_context *ctx)
uint8_t YH_INTERNAL aes_cbc_encrypt(uint8_t *in, uint8_t *out, uint16_t len, uint8_t *iv, aes_context *ctx)
uint8_t YH_INTERNAL aes_encrypt(uint8_t *in, uint8_t *out, const aes_context *ctx)
void YH_INTERNAL aes_destroy(aes_context *ctx)
uint8_t YH_INTERNAL aes_decrypt(uint8_t *in, uint8_t *out, const aes_context *ctx)
session operation op sign key_len