Add an EVP_MD_CTX_md() test
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8614)
This commit is contained in:
parent
b7c913c820
commit
5a2bd6bc66
1 changed files with 2 additions and 1 deletions
|
@ -1083,7 +1083,8 @@ static int calculate_digest(const EVP_MD *md, const char *msg, size_t len,
|
|||
|| !TEST_true(EVP_DigestUpdate(ctx, msg, len))
|
||||
|| !TEST_true(EVP_DigestFinal_ex(ctx, out, NULL))
|
||||
|| !TEST_mem_eq(out, SHA256_DIGEST_LENGTH, exptd,
|
||||
SHA256_DIGEST_LENGTH))
|
||||
SHA256_DIGEST_LENGTH)
|
||||
|| !TEST_true(md == EVP_MD_CTX_md(ctx)))
|
||||
goto err;
|
||||
|
||||
ret = 1;
|
||||
|
|
Loading…
Reference in a new issue