]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Bugfix according to real behaviour
authorDmitry Belyavskiy <beldmit@gmail.com>
Mon, 12 Dec 2016 12:17:18 +0000 (15:17 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 12 Dec 2016 12:17:18 +0000 (15:17 +0300)
gost_ameth.c

index 8e7d8d58a83c8849254357687d2025a43f068c3b..1a9361b5fb434ea51c761fbd06bd9e3028c42c29 100644 (file)
@@ -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) {