X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_cipher.c;h=105fd42192b99a2370767f3a757635a927000f70;hb=dbe48a1212192559ba9843c532e6faff0ea41175;hp=d37ae66f9ad20f67544453abd457ed780331c0a6;hpb=cc4de730d8ae76524baa567633f0915d5a490ae0;p=openssl-gost%2Fengine.git diff --git a/gost_grasshopper_cipher.c b/gost_grasshopper_cipher.c index d37ae66..105fd42 100644 --- a/gost_grasshopper_cipher.c +++ b/gost_grasshopper_cipher.c @@ -1097,9 +1097,11 @@ static int gost_grasshopper_mgm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void > 0) { gost_grasshopper_cipher_key(&mctx->ks.gh_ks, newkey); memset(newkey, 0, sizeof(newkey)); + + return 1; } } - return 1; + return -1; default: return -1;