提交 f7924634 编写于 作者: D Dr. Stephen Henson

PR: 2586

Submitted by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Reviewed by: steve

Zero structure fields properly.
上级 d3f6a5a0
...@@ -496,7 +496,8 @@ int gost89_get_asn1_parameters(EVP_CIPHER_CTX *ctx,ASN1_TYPE *params) ...@@ -496,7 +496,8 @@ int gost89_get_asn1_parameters(EVP_CIPHER_CTX *ctx,ASN1_TYPE *params)
int gost_imit_init_cpa(EVP_MD_CTX *ctx) int gost_imit_init_cpa(EVP_MD_CTX *ctx)
{ {
struct ossl_gost_imit_ctx *c = ctx->md_data; struct ossl_gost_imit_ctx *c = ctx->md_data;
memset(c->buffer,0,16); memset(c->buffer,0,sizeof(c->buffer));
memset(c->partial_block,0,sizeof(c->partial_block));
c->count = 0; c->count = 0;
c->bytes_left=0; c->bytes_left=0;
c->key_meshing=1; c->key_meshing=1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册