From: Dmitry Belyavskiy Date: Mon, 12 Dec 2016 12:17:18 +0000 (+0300) Subject: Bugfix according to real behaviour X-Git-Tag: v1.1.0.2~18 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=849ca2fc6a06c9a9d58ea3050760610dc7fdb190;p=openssl-gost%2Fengine.git Bugfix according to real behaviour --- diff --git a/gost_ameth.c b/gost_ameth.c index 8e7d8d5..1a9361b 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -745,7 +745,7 @@ static int pub_encode_gost_ec(X509_PUBKEY *pub, const EVP_PKEY *pk) store_bignum(X, databuf + data_len / 2, data_len / 2); store_bignum(Y, databuf, data_len / 2); - BUF_reverse(NULL, databuf, data_len); + BUF_reverse(databuf, NULL, data_len); octet = ASN1_OCTET_STRING_new(); if (octet == NULL) {