Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
beldmit committed Jun 15, 2018
1 parent 843b256 commit 02519bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gost_pmeth.c
Expand Up @@ -614,7 +614,6 @@ static int pkey_gost_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
}
case EVP_PKEY_CTRL_MAC_LEN:
{
/*TODO*/
if (p1 < 1 || p1 > 8) {

GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL, GOST_R_INVALID_MAC_SIZE);
Expand Down Expand Up @@ -746,8 +745,7 @@ static int pkey_gost_omac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2, si
}
case EVP_PKEY_CTRL_MAC_LEN:
{
/*TODO*/
if (p1 < 1 || p1 > 8) {
if (p1 < 1 || p1 > max_size) {

GOSTerr(GOST_F_PKEY_GOST_OMAC_CTRL, GOST_R_INVALID_MAC_SIZE);
return 0;
Expand Down

0 comments on commit 02519bc

Please sign in to comment.