Mercurial > dropbear
comparison libtomcrypt/src/mac/omac/omac_memory_multi.c @ 1437:871b18fd7065 fuzz
merge from main (libtommath/libtomcrypt/curve25510-donna updates)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 22:51:45 +0800 |
parents | f849a5ca2efc |
children | 6dba84798cd5 |
comparison
equal
deleted
inserted
replaced
1432:41dca1e5ea34 | 1437:871b18fd7065 |
---|---|
4 * algorithms in a highly modular and flexible manner. | 4 * algorithms in a highly modular and flexible manner. |
5 * | 5 * |
6 * The library is free for all purposes without any express | 6 * The library is free for all purposes without any express |
7 * guarantee it works. | 7 * guarantee it works. |
8 * | 8 * |
9 * Tom St Denis, [email protected], http://libtomcrypt.com | 9 * Tom St Denis, [email protected], http://libtom.org |
10 */ | 10 */ |
11 #include "tomcrypt.h" | 11 #include "tomcrypt.h" |
12 #include <stdarg.h> | 12 #include <stdarg.h> |
13 | 13 |
14 /** | 14 /** |
15 @file omac_memory_multi.c | 15 @file omac_memory_multi.c |
16 OMAC1 support, process multiple blocks of memory, Tom St Denis | 16 LTC_OMAC1 support, process multiple blocks of memory, Tom St Denis |
17 */ | 17 */ |
18 | 18 |
19 #ifdef LTC_OMAC | 19 #ifdef LTC_OMAC |
20 | 20 |
21 /** | 21 /** |
22 OMAC multiple blocks of memory | 22 LTC_OMAC multiple blocks of memory |
23 @param cipher The index of the desired cipher | 23 @param cipher The index of the desired cipher |
24 @param key The secret key | 24 @param key The secret key |
25 @param keylen The length of the secret key (octets) | 25 @param keylen The length of the secret key (octets) |
26 @param out [out] The destination of the authentication tag | 26 @param out [out] The destination of the authentication tag |
27 @param outlen [in/out] The max size and resulting size of the authentication tag (octets) | 27 @param outlen [in/out] The max size and resulting size of the authentication tag (octets) |
28 @param in The data to send through OMAC | 28 @param in The data to send through LTC_OMAC |
29 @param inlen The length of the data to send through OMAC (octets) | 29 @param inlen The length of the data to send through LTC_OMAC (octets) |
30 @param ... tuples of (data,len) pairs to OMAC, terminated with a (NULL,x) (x=don't care) | 30 @param ... tuples of (data,len) pairs to LTC_OMAC, terminated with a (NULL,x) (x=don't care) |
31 @return CRYPT_OK if successful | 31 @return CRYPT_OK if successful |
32 */ | 32 */ |
33 int omac_memory_multi(int cipher, | 33 int omac_memory_multi(int cipher, |
34 const unsigned char *key, unsigned long keylen, | 34 const unsigned char *key, unsigned long keylen, |
35 unsigned char *out, unsigned long *outlen, | 35 unsigned char *out, unsigned long *outlen, |
83 return err; | 83 return err; |
84 } | 84 } |
85 | 85 |
86 #endif | 86 #endif |
87 | 87 |
88 /* $Source: /cvs/libtom/libtomcrypt/src/mac/omac/omac_memory_multi.c,v $ */ | 88 /* $Source$ */ |
89 /* $Revision: 1.5 $ */ | 89 /* $Revision$ */ |
90 /* $Date: 2006/11/03 00:39:49 $ */ | 90 /* $Date$ */ |