diff options
Diffstat (limited to 'cipher/stribog.c')
-rw-r--r-- | cipher/stribog.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cipher/stribog.c b/cipher/stribog.c index 6d1d3422..942bbf4c 100644 --- a/cipher/stribog.c +++ b/cipher/stribog.c @@ -1198,10 +1198,12 @@ transform (void *context, const unsigned char *inbuf_arg, size_t datalen); static void -stribog_init_512 (void *context) +stribog_init_512 (void *context, unsigned int flags) { STRIBOG_CONTEXT *hd = context; + (void)flags; + memset (hd, 0, sizeof (*hd)); hd->bctx.blocksize = 64; @@ -1209,10 +1211,11 @@ stribog_init_512 (void *context) } static void -stribog_init_256 (void *context) +stribog_init_256 (void *context, unsigned int flags) { STRIBOG_CONTEXT *hd = context; - stribog_init_512 (context); + + stribog_init_512 (context, flags); memset (hd->h, 1, 64); } |