5 #include "aes_xcbc_mac.h"
6 #define STR "Hola guasssso c|mo estais ...012"
7 void print_hash(const __u8 *hash) {
8 printf("%08x %08x %08x %08x\n",
12 *(__u32*)(&hash[12]));
14 int main(int argc, char *argv[]) {
15 aes_block key= { 0xdeadbeef, 0xceedcaca, 0xcafebabe, 0xff010204 };
20 fprintf(stderr, "pasame el str\n");
23 AES_xcbc_mac_set_key(&ctx, (__u8 *)&key, sizeof(key));
24 AES_xcbc_mac_hash(&ctx, str, strlen(str), hash);
27 AES_xcbc_mac_hash(&ctx, str, strlen(str), hash);