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 /gost_keyexpimp.c | |
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 'gost_keyexpimp.c')
-rw-r--r-- | gost_keyexpimp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_keyexpimp.c b/gost_keyexpimp.c index 5564387..e0961ff 100644 --- a/gost_keyexpimp.c +++ b/gost_keyexpimp.c @@ -176,7 +176,7 @@ int gost_kdftree2012_256(unsigned char *keyout, size_t keyout_len, int iters, i = 0; unsigned char zero = 0; unsigned char *ptr = keyout; - HMAC_CTX *ctx = NULL; + HMAC_CTX *ctx; unsigned char *len_ptr = NULL; uint32_t len_repr = htonl(keyout_len * 8); size_t len_repr_len = 4; |