diff options
author | David Benjamin <davidben@chromium.org> | 2014-11-04 21:23:33 -0500 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-11-06 01:49:03 +0000 |
commit | 9da9035b50e8eb149a9cb25cc6bf6a1690d61e07 (patch) | |
tree | 30092fcccf0663a799e117805af6c7b8b2a7fda9 /include | |
parent | 23586e1e0ef247d5ac89ef075114129326cd01a5 (diff) | |
download | boringssl-9da9035b50e8eb149a9cb25cc6bf6a1690d61e07.zip boringssl-9da9035b50e8eb149a9cb25cc6bf6a1690d61e07.tar.gz boringssl-9da9035b50e8eb149a9cb25cc6bf6a1690d61e07.tar.bz2 |
Add digest_test with tests for all existing EVP_MDs.
Remove the existing md5_test and sha1_test. They now are all covered by
digest_test. For good measure, test the one-shot functions too.
Change-Id: I8e144cc563fb8817144e26cbd2e10c15642464ba
Reviewed-on: https://boringssl-review.googlesource.com/2211
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/digest.h | 2 | ||||
-rw-r--r-- | include/openssl/md4.h | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/include/openssl/digest.h b/include/openssl/digest.h index 6d8a165..a453ea3 100644 --- a/include/openssl/digest.h +++ b/include/openssl/digest.h @@ -142,7 +142,7 @@ OPENSSL_EXPORT int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, * |md_out|. At most |EVP_MAX_MD_SIZE| bytes are written. If |out_size| is not * NULL then |*out_size| is set to the number of bytes written. It returns one * on success and zero otherwise. After this call, the hash cannot be updated - * or finished again until |EVP_DigestFinal_ex| is called to start another + * or finished again until |EVP_DigestInit_ex| is called to start another * hashing operation. */ OPENSSL_EXPORT int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, uint8_t *md_out, unsigned int *out_size); diff --git a/include/openssl/md4.h b/include/openssl/md4.h index 715adab..ce4fa99 100644 --- a/include/openssl/md4.h +++ b/include/openssl/md4.h @@ -82,10 +82,6 @@ OPENSSL_EXPORT int MD4_Update(MD4_CTX *md4, const void *data, size_t len); * returns one. */ OPENSSL_EXPORT int MD4_Final(uint8_t *md, MD4_CTX *md4); -/* MD4 writes the digest of |len| bytes from |data| to |out| and returns |out|. - * There must be at least |MD4_DIGEST_LENGTH| bytes of space in |out|. */ -OPENSSL_EXPORT uint8_t *MD4(const uint8_t *data, size_t len, uint8_t *out); - /* MD4_Transform is a low-level function that performs a single, MD4 block * transformation using the state from |md4| and 64 bytes from |block|. */ OPENSSL_EXPORT void MD4_Transform(MD4_CTX *md4, const uint8_t *block); |