diff options
author | David Benjamin <davidben@chromium.org> | 2014-11-26 16:38:00 -0500 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2014-12-02 20:45:07 +0000 |
commit | 00505ec2e1e4c3047b4f61a306f2ac1372fa7640 (patch) | |
tree | 0eb8f3285175524d33b0cc6690941dcb2ce9723a /include | |
parent | af9d9419a6298db5fa4605f21703c2c6527a0f82 (diff) | |
download | boringssl-00505ec2e1e4c3047b4f61a306f2ac1372fa7640.zip boringssl-00505ec2e1e4c3047b4f61a306f2ac1372fa7640.tar.gz boringssl-00505ec2e1e4c3047b4f61a306f2ac1372fa7640.tar.bz2 |
Add EVP_md5_sha1.
Use it in ssl3_cert_verify_hash so signing a pre-TLS-1.2 handshake hash can go
through RSA_sign and be intercepted via RSA_METHOD appropriately. This avoids
Windows needing to intercept sign_raw. (CAPI keys cannot provide sign_raw,
unless the input size happens to be that of NID_md5_sha1.)
Also use it in processing ServerKeyExchange to avoid special-casing RSA.
BUG=crbug.com/437023
Change-Id: Ia07433f468b75fdf7bfc8fa90c9751639b2478e6
Reviewed-on: https://boringssl-review.googlesource.com/2420
Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/digest.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/digest.h b/include/openssl/digest.h index a453ea3..864917e 100644 --- a/include/openssl/digest.h +++ b/include/openssl/digest.h @@ -84,6 +84,10 @@ OPENSSL_EXPORT const EVP_MD *EVP_sha256(void); OPENSSL_EXPORT const EVP_MD *EVP_sha384(void); OPENSSL_EXPORT const EVP_MD *EVP_sha512(void); +/* EVP_md5_sha1 is a TLS-specific |EVP_MD| which computes the concatenation of + * MD5 and SHA-1, as used in TLS 1.1 and below. */ +OPENSSL_EXPORT const EVP_MD *EVP_md5_sha1(void); + /* EVP_get_digestbynid returns an |EVP_MD| for the given NID, or NULL if no * such digest is known. */ OPENSSL_EXPORT const EVP_MD *EVP_get_digestbynid(int nid); |