boringssl/crypto/evp
Adam Langley 5129e2d695 Align EVP return values with BoringSSL convention.
Where possible, functions should return one for success and zero for
error. The use of additional negative values to indicate an error is,
itself, error prone.

This change fixes many EVP functions to remove the possibility of
negative return values. Existing code that is testing for <= 0 will
continue to function, although there is the possibility that some code
was differentiating between negative values (error) and zero (invalid
signature) for the verify functions and will now show the wrong error
message.

Change-Id: I982512596bb18a82df65861394dbd7487783bd3d
Reviewed-on: https://boringssl-review.googlesource.com/1333
Reviewed-by: Adam Langley <agl@google.com>
2014-07-29 21:47:51 +00:00
..
asn1.c Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt Inital import. 2014-06-20 13:17:32 -07:00
digestsign.c Inital import. 2014-06-20 13:17:32 -07:00
evp_ctx.c Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
evp_error.c Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
evp.c Introduce EVP_PKEY_is_opaque to replace RSA_METHOD_FLAG_NO_CHECK. 2014-07-18 23:35:04 +00:00
example_sign.c Fix EVP_PKEY_FLAG_AUTOARGLEN behavior. 2014-07-10 02:10:47 +00:00
internal.h Introduce EVP_PKEY_is_opaque to replace RSA_METHOD_FLAG_NO_CHECK. 2014-07-18 23:35:04 +00:00
p_ec_asn1.c Introduce EVP_PKEY_is_opaque to replace RSA_METHOD_FLAG_NO_CHECK. 2014-07-18 23:35:04 +00:00
p_ec.c Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
p_hmac_asn1.c Introduce EVP_PKEY_is_opaque to replace RSA_METHOD_FLAG_NO_CHECK. 2014-07-18 23:35:04 +00:00
p_hmac.c Perform bounds checks in hmac_signctx. 2014-07-10 20:59:10 +00:00
p_rsa_asn1.c Introduce EVP_PKEY_is_opaque to replace RSA_METHOD_FLAG_NO_CHECK. 2014-07-18 23:35:04 +00:00
p_rsa.c Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
pbkdf.c Inital import. 2014-06-20 13:17:32 -07:00
sign.c Inital import. 2014-06-20 13:17:32 -07:00