uint8_t *data = (uint8_t *) inputData.data();
uint8_t *key = (uint8_t *) keyData.data();
struct AES_ctx ctx;
AES_init_ctx(&ctx, key);
AES_ECB_encrypt(&ctx, data);
uint8_t *data = (uint8_t *) inputData.data();
uint8_t *key = (uint8_t *) keyData.data();
struct AES_ctx ctx;
AES_init_ctx(&ctx, key);
AES_ECB_encrypt(&ctx, data);
To copy to clipboard, switch view to plain text mode
I got a message error:
error: undefined reference to `AES_init_ctx(AES_ctx*, unsigned char const*)'
error: undefined reference to `AES_ECB_encrypt(AES_ctx*, unsigned char*)'
I think that uint8_t changed unsigned char by Qt.
But uint8_t is member of stdint lib
#include <stdint.h>
#include <stdint.h>
To copy to clipboard, switch view to plain text mode
Bookmarks