diff options
author | Nikolay Morozov <nmorozoff77@yandex.ru> | 2020-02-27 14:28:07 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2020-02-29 21:57:21 +0300 |
commit | d1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23 (patch) | |
tree | cbea4f290be794da54bc2038e0ab933fed8cefc9 /gost89.h | |
parent | 0906436e33bdd8dabf07d494e3d6d5184cc02246 (diff) | |
download | gost-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |