Mercurial > dropbear
comparison libtomcrypt/src/mac/hmac/hmac_process.c @ 1478:3a933956437e coverity
update coverity
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 09 Feb 2018 23:49:22 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1439:8d24733026c5 | 1478:3a933956437e |
---|---|
3 * LibTomCrypt is a library that provides various cryptographic | 3 * LibTomCrypt is a library that provides various cryptographic |
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 * | |
9 * Tom St Denis, [email protected], http://libtom.org | |
10 */ | 8 */ |
11 #include "tomcrypt.h" | 9 #include "tomcrypt.h" |
12 | 10 |
13 /** | 11 /** |
14 @file hmac_process.c | 12 @file hmac_process.c |
15 LTC_HMAC support, process data, Tom St Denis/Dobes Vandermeer | 13 HMAC support, process data, Tom St Denis/Dobes Vandermeer |
16 */ | 14 */ |
17 | 15 |
18 #ifdef LTC_HMAC | 16 #ifdef LTC_HMAC |
19 | 17 |
20 /** | 18 /** |
21 Process data through LTC_HMAC | 19 Process data through HMAC |
22 @param hmac The hmac state | 20 @param hmac The hmac state |
23 @param in The data to send through LTC_HMAC | 21 @param in The data to send through HMAC |
24 @param inlen The length of the data to LTC_HMAC (octets) | 22 @param inlen The length of the data to HMAC (octets) |
25 @return CRYPT_OK if successful | 23 @return CRYPT_OK if successful |
26 */ | 24 */ |
27 int hmac_process(hmac_state *hmac, const unsigned char *in, unsigned long inlen) | 25 int hmac_process(hmac_state *hmac, const unsigned char *in, unsigned long inlen) |
28 { | 26 { |
29 int err; | 27 int err; |
36 } | 34 } |
37 | 35 |
38 #endif | 36 #endif |
39 | 37 |
40 | 38 |
41 /* $Source$ */ | 39 /* ref: $Format:%D$ */ |
42 /* $Revision$ */ | 40 /* git commit: $Format:%H$ */ |
43 /* $Date$ */ | 41 /* commit time: $Format:%ai$ */ |