X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_ec_keyx.c;h=7043347b584381a9faaf3104fd7b00c043eef712;hb=refs%2Fheads%2Fopenssl_1_0_2;hp=c2a465b15c342f188f24eaee584abf95a80faec8;hpb=671a6236ffa2e92bc635db1429ed0d7ae8d3a959;p=openssl-gost%2Fengine.git diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c index c2a465b..7043347 100644 --- a/gost_ec_keyx.c +++ b/gost_ec_keyx.c @@ -8,6 +8,7 @@ * Requires OpenSSL 0.9.9 for compilation * **********************************************************************/ #include +#include #include #include #include @@ -60,10 +61,11 @@ static int VKO_compute_key(unsigned char *shared_key, size_t shared_key_size, Y = BN_CTX_get(ctx); EC_GROUP_get_order(EC_KEY_get0_group(priv_key), order, ctx); BN_mod_mul(p, key, UKM, order, ctx); - if(!EC_POINT_mul(EC_KEY_get0_group(priv_key), pnt, NULL, pub_key, p, ctx)) { + if (!EC_POINT_mul + (EC_KEY_get0_group(priv_key), pnt, NULL, pub_key, p, ctx)) { GOSTerr(GOST_F_VKO_COMPUTE_KEY, GOST_R_ERROR_POINT_MUL); goto err; - } + } EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(priv_key), pnt, X, Y, ctx); /*