1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
11 EAX implementation, add meta-data, by Tom St Denis
18 add header (metadata) to the stream
19 @param eax The current EAX state
20 @param header The header (meta-data) data you wish to add to the state
21 @param length The length of the header data
22 @return CRYPT_OK if successful
24 int eax_addheader(eax_state *eax, const unsigned char *header,
27 LTC_ARGCHK(eax != NULL);
28 LTC_ARGCHK(header != NULL);
29 return omac_process(&eax->headeromac, header, length);
34 /* ref: $Format:%D$ */
35 /* git commit: $Format:%H$ */
36 /* commit time: $Format:%ai$ */