Fix warning and back out bad modification.
This commit is contained in:
parent
e4317d2031
commit
9aba74e55a
@ -565,7 +565,7 @@ int gost_imit_init_cpa(EVP_MD_CTX *ctx)
|
|||||||
|
|
||||||
static void mac_block_mesh(struct ossl_gost_imit_ctx *c,const unsigned char *data)
|
static void mac_block_mesh(struct ossl_gost_imit_ctx *c,const unsigned char *data)
|
||||||
{
|
{
|
||||||
char buffer[8];
|
unsigned char buffer[8];
|
||||||
/* We are using local buffer for iv because CryptoPro doesn't
|
/* We are using local buffer for iv because CryptoPro doesn't
|
||||||
* interpret internal state of MAC algorithm as iv during keymeshing
|
* interpret internal state of MAC algorithm as iv during keymeshing
|
||||||
* (but does initialize internal state from iv in key transport
|
* (but does initialize internal state from iv in key transport
|
||||||
|
@ -591,7 +591,7 @@ static int pkey_gost_mac_ctrl (EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
|
|||||||
} else {
|
} else {
|
||||||
key = &(data->key);
|
key = &(data->key);
|
||||||
}
|
}
|
||||||
return imit_gost_vizir.md_ctrl(mctx,EVP_MD_CTRL_SET_KEY,32,key);
|
return mctx->digest->md_ctrl(mctx,EVP_MD_CTRL_SET_KEY,32,key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return -2;
|
return -2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user