RT 4393: Call EC_GROUP_order_bits in priv2opt.
authorDavid Benjamin <davidben@google.com>
Mon, 7 Mar 2016 14:57:58 +0000 (09:57 -0500)
committerEmilia Kasper <emilia@openssl.org>
Tue, 29 Mar 2016 18:03:48 +0000 (20:03 +0200)
commitfe56d8e8a3665dc7e6784e0c170f790e6df8153f
tree739fa5589676ea422aae96520fdac3db861c53f9
parenteb47aae5d33de3d39379c15e20cbbd12ea8a29be
RT 4393: Call EC_GROUP_order_bits in priv2opt.

The private key is a scalar and should be sized by the order, not the
degree. See RFC 5915.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
crypto/ec/ec_key.c