Mercurial > dropbear
comparison libtomcrypt/src/mac/hmac/hmac_memory_multi.c @ 1439:8d24733026c5 coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 23:33:16 +0800 |
parents | f849a5ca2efc |
children | 6dba84798cd5 |
comparison
equal
deleted
inserted
replaced
1400:238a439670f5 | 1439:8d24733026c5 |
---|---|
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 hmac_memory_multi.c | 15 @file hmac_memory_multi.c |
16 HMAC support, process multiple blocks of memory, Tom St Denis/Dobes Vandermeer | 16 LTC_HMAC support, process multiple blocks of memory, Tom St Denis/Dobes Vandermeer |
17 */ | 17 */ |
18 | 18 |
19 #ifdef LTC_HMAC | 19 #ifdef LTC_HMAC |
20 | 20 |
21 /** | 21 /** |
22 HMAC multiple blocks of memory to produce the authentication tag | 22 LTC_HMAC multiple blocks of memory to produce the authentication tag |
23 @param hash The index of the hash to use | 23 @param hash The index of the hash to use |
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] Destination of the authentication tag | 26 @param out [out] Destination of the authentication tag |
27 @param outlen [in/out] Max size and resulting size of authentication tag | 27 @param outlen [in/out] Max size and resulting size of authentication tag |
28 @param in The data to HMAC | 28 @param in The data to LTC_HMAC |
29 @param inlen The length of the data to HMAC (octets) | 29 @param inlen The length of the data to LTC_HMAC (octets) |
30 @param ... tuples of (data,len) pairs to HMAC, terminated with a (NULL,x) (x=don't care) | 30 @param ... tuples of (data,len) pairs to LTC_HMAC, 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 hmac_memory_multi(int hash, | 33 int hmac_memory_multi(int hash, |
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, |
85 } | 85 } |
86 | 86 |
87 #endif | 87 #endif |
88 | 88 |
89 | 89 |
90 /* $Source: /cvs/libtom/libtomcrypt/src/mac/hmac/hmac_memory_multi.c,v $ */ | 90 /* $Source$ */ |
91 /* $Revision: 1.5 $ */ | 91 /* $Revision$ */ |
92 /* $Date: 2006/11/03 00:39:49 $ */ | 92 /* $Date$ */ |