Mercurial > dropbear
comparison libtomcrypt/src/mac/hmac/hmac_file.c @ 1733:d529a52b2f7c coverity coverity
merge coverity from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 Jun 2020 21:07:34 +0800 |
parents | e9dba7abd939 |
children |
comparison
equal
deleted
inserted
replaced
1643:b59623a64678 | 1733:d529a52b2f7c |
---|---|
28 int hmac_file(int hash, const char *fname, | 28 int hmac_file(int hash, const char *fname, |
29 const unsigned char *key, unsigned long keylen, | 29 const unsigned char *key, unsigned long keylen, |
30 unsigned char *out, unsigned long *outlen) | 30 unsigned char *out, unsigned long *outlen) |
31 { | 31 { |
32 #ifdef LTC_NO_FILE | 32 #ifdef LTC_NO_FILE |
33 (void)hash; (void)fname; (void)key; (void)keylen; (void)out; (void)outlen; | 33 LTC_UNUSED_PARAM(hash); |
34 LTC_UNUSED_PARAM(fname); | |
35 LTC_UNUSED_PARAM(key); | |
36 LTC_UNUSED_PARAM(keylen); | |
37 LTC_UNUSED_PARAM(out); | |
38 LTC_UNUSED_PARAM(outlen); | |
34 return CRYPT_NOP; | 39 return CRYPT_NOP; |
35 #else | 40 #else |
36 hmac_state hmac; | 41 hmac_state hmac; |
37 FILE *in; | 42 FILE *in; |
38 unsigned char *buf; | 43 unsigned char *buf; |