X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_cipher.c;h=21d503814e2c037d55e51eef5c8a7c711f70bbbb;hb=08515dc5a74c62d082e6f7f745fac2000f26614a;hp=ba72d7993d0cc8135aa6543c7544f4d01645d458;hpb=7d9283b8e7d6188f24d11b6834c9097d5563c09e;p=openssl-gost%2Fengine.git diff --git a/gost_grasshopper_cipher.c b/gost_grasshopper_cipher.c index ba72d79..21d5038 100644 --- a/gost_grasshopper_cipher.c +++ b/gost_grasshopper_cipher.c @@ -776,7 +776,7 @@ int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, c = &(ctr_ctx->c); if (gost_tlstree(NID_grasshopper_cbc, c->master_key.k.b, newkey, - (const unsigned char *)ptr)) { + (const unsigned char *)ptr) > 0) { gost_grasshopper_cipher_key(c, newkey); return 1; }