From d1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23 Mon Sep 17 00:00:00 2001 From: Nikolay Morozov Date: Thu, 27 Feb 2020 14:28:07 +0300 Subject: 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 --- gost89.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gost89.h') 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 */ -- cgit v1.1