OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / libcrypto / libaes / aes_xcbc_mac.h
1 #ifndef _AES_XCBC_MAC_H
2 #define _AES_XCBC_MAC_H
3
4 typedef u_int32_t aes_block[4];
5 typedef struct {
6         aes_context ctx_k1;
7         aes_block k2;
8         aes_block k3;
9 } aes_context_mac;
10 int AES_xcbc_mac_set_key(aes_context_mac *ctxm, const u_int8_t *key, int keylen);
11 int AES_xcbc_mac_hash(const aes_context_mac *ctxm, const u_int8_t * in, int ilen, u_int8_t hash[16]);
12 #endif /* _AES_XCBC_MAC_H */