ec/ecp_nistz256.c: fix ecp_nistz256_set_from_affine.
authorAndy Polyakov <appro@openssl.org>
Wed, 18 Jul 2018 13:22:07 +0000 (15:22 +0200)
committerAndy Polyakov <appro@openssl.org>
Sun, 22 Jul 2018 13:24:52 +0000 (15:24 +0200)
commiteff1c8a2d8c625b36e6ed33bd49ac09f37f1bf22
tree64a809ee2d0e508ebf49a7a047335b953aff1043
parent5c2bac9289e97b47dc1fd1603efe09d3e10ce9cb
ec/ecp_nistz256.c: fix ecp_nistz256_set_from_affine.

ecp_nistz256_set_from_affine is called when application attempts to use
custom generator, i.e. rarely. Even though it was wrong, it didn't
affect point operations, they were just not as fast as expected.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6738)

(cherry picked from commit 8fc4aeb9521270ac74b29ce7f569939b0b39e685)
crypto/ec/ecp_nistz256.c