本文实例讲述了基于C语言实现的aes256加密算法。分享给大家供大家参考,具体如下:
aes256.h:
#ifndef uint8_t
#define uint8_t unsigned char
#endif
#ifdef __cplusplus
extern C {
#endif
typedef struct {
uint8_t key[32];
uint8_t enckey[32];
uint8_t deckey[32];
} aes256_context;
void aes256_init(aes256_context *, uint8_t *
1