Fix bug in nistp224/256/521 where have_precompute_mult always returns 0
authorMatt Caswell <matt@openssl.org>
Wed, 4 Nov 2015 17:30:22 +0000 (17:30 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Jan 2016 12:56:58 +0000 (12:56 +0000)
commit615614c8862fb89dcf1551a4e113be0789dddf5f
tree1c3bcfd008be669904d0186bb204494381479d9e
parentf5a12207eccfd814bde68b880a96910dfa25f164
Fix bug in nistp224/256/521 where have_precompute_mult always returns 0

During precomputation if the group given is well known then we memcpy a
well known precomputation. However we go the wrong label in the code and
don't store the data properly. Consequently if we call have_precompute_mult
the data isn't there and we return 0.

RT#3600

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c