boringssl/crypto/evp
David Benjamin 0248889950 Don't mix and match libraries and errors.
The same library code applies for both the error and the function, so modules
cannot easily report errors from each other. Switch evp/algorithm.c's error
codes to the EVP library. Remove the original error codes so it's obvious some
changes are needed.

- X509_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED -> EVP_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED
  ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED -> EVP_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED
  (Actually, the X509 version of this error code doesn't exist in OpenSSL. It should
   have been ASN1.)

- ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM -> EVP_R_UNKNOWN_SIGNATURE_ALGORITHM

- ASN1_R_WRONG_PUBLIC_KEY_TYPE -> EVP_R_WRONG_PUBLIC_KEY_TYPE

- ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM -> EVP_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM

Change-Id: I05b1a05b465d800c85f7d63ca74588edf40847b9
Reviewed-on: https://boringssl-review.googlesource.com/1940
Reviewed-by: Adam Langley <agl@google.com>
2014-10-13 22:56:28 +00:00
..
algorithm.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
asn1.c Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt Add EVP_DigestVerifyInitFromAlgorithm and EVP_DigestSignAlgorithm. 2014-10-09 21:52:52 +00:00
digestsign.c Inital import. 2014-06-20 13:17:32 -07:00
evp_ctx.c Use EVP_PKEY_dup instead of manually incrementing the refcount. 2014-08-07 00:03:56 +00:00
evp_error.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
evp.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
example_sign.c Add tests for AlgorithmIdentifier support in EVP. 2014-10-09 22:07:32 +00:00
internal.h Add EVP_DigestVerifyInitFromAlgorithm and EVP_DigestSignAlgorithm. 2014-10-09 21:52:52 +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 Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
p_rsa.c RSA_encrypt and RSA_sign_raw aren't the same. 2014-10-09 21:04:07 +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