aboutsummaryrefslogtreecommitdiff
path: root/gost_ec_keyx.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2016-01-02 23:06:56 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2016-01-02 23:06:56 +0300
commit096f193c98ffbe23686f10c834b2c42092b65954 (patch)
tree209a1ef6c4e57da480a094742248d51c11748fb0 /gost_ec_keyx.c
parent98a1b3fcae5a4efe29774a96ce860dc52b24549b (diff)
downloadgost-engine-096f193c98ffbe23686f10c834b2c42092b65954.zip
gost-engine-096f193c98ffbe23686f10c834b2c42092b65954.tar.gz
gost-engine-096f193c98ffbe23686f10c834b2c42092b65954.tar.bz2
Formatting fix
Diffstat (limited to 'gost_ec_keyx.c')
-rw-r--r--gost_ec_keyx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c
index 594329b..7043347 100644
--- a/gost_ec_keyx.c
+++ b/gost_ec_keyx.c
@@ -61,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);
/*