EC_KEY_priv2buf (): check parameter sanity
authorJ Mohan Rao Arisankala <mohan@barracuda.com>
Wed, 24 Feb 2016 07:33:10 +0000 (13:03 +0530)
committerRich Salz <rsalz@openssl.org>
Fri, 26 Feb 2016 16:18:18 +0000 (11:18 -0500)
commitacae59bb29ddc769743ab4a8ae373b5ff2f42b57
tree096a136a046e251528ba8e37caf9a2091f9a965f
parent219f3ca61c2902425047974441d953e6042250ec
EC_KEY_priv2buf (): check parameter sanity

In EC_KEY_priv2buf(), check for pbuf sanity.
If invoked with NULL, gracefully returns the key length.

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/ec/ec_key.c