aboutsummaryrefslogtreecommitdiff
path: root/gost89.h
diff options
context:
space:
mode:
authorNikolay Morozov <nmorozoff77@yandex.ru>2020-02-27 14:28:07 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2020-02-29 21:57:21 +0300
commitd1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23 (patch)
treecbea4f290be794da54bc2038e0ab933fed8cefc9 /gost89.h
parent0906436e33bdd8dabf07d494e3d6d5184cc02246 (diff)
downloadgost-engine-d1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23.zip
gost-engine-d1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23.tar.gz
gost-engine-d1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23.tar.bz2
cppcheck: Variable is reassigned a value before the old one has been used.
Plus some minor chnages - function defenition doen't match function declaration - Consecutive break statement is unnecessary. - Type missmatch in format string
Diffstat (limited to 'gost89.h')
-rw-r--r--gost89.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gost89.h b/gost89.h
index 9f36905..569db5b 100644
--- a/gost89.h
+++ b/gost89.h
@@ -78,7 +78,7 @@ int gost_mac(gost_ctx * ctx, int mac_len, const unsigned char *data,
* Compute MAC of given length in bits from data, using non-zero 8-byte IV
* (non-standard, for use in CryptoPro key transport only
*/
-int gost_mac_iv(gost_ctx * c, int mac_len, const unsigned char *iv,
+int gost_mac_iv(gost_ctx * ctx, int mac_len, const unsigned char *iv,
const unsigned char *data, unsigned int data_len,
unsigned char *mac);
/* Perform one step of MAC calculation like gostcrypt */