]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Result check
authorDmitry Belyavskiy <beldmit@gmail.com>
Wed, 19 Sep 2018 14:30:44 +0000 (17:30 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 19 Sep 2018 14:30:44 +0000 (17:30 +0300)
gost_grasshopper_cipher.c

index ba72d7993d0cc8135aa6543c7544f4d01645d458..21d503814e2c037d55e51eef5c8a7c711f70bbbb 100644 (file)
@@ -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;
             }