Update sm2_crypt.c
authorneighbads <16126598+neighbads@users.noreply.github.com>
Wed, 11 Jul 2018 07:40:03 +0000 (15:40 +0800)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Jul 2018 10:28:03 +0000 (12:28 +0200)
commit675fa85413a130607ec780ce9edaa6dd7ee1500f
tree09f53d99d576f17f16d6e1044adf02f3b94b5587
parent85aebfcc6eedceaed34012a8b2c27c43ef402f95
Update sm2_crypt.c

asn1_encode : x, y  =>    0 | x,0 | y
(because of DER encoding rules when x and y have high bit set)

CLA: Trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6694)
crypto/sm2/sm2_crypt.c