diff options
author | Jiasheng Jiang <jiasheng@purdue.edu> | 2024-03-21 20:22:01 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-03-25 17:51:57 +0100 |
commit | ba3b33751d85f43569d51539c7632092cb60a2fd (patch) | |
tree | ff836ed42e2d7efef18ec6ea9bd028f0498a7eb7 /.gitignore | |
parent | c6b2290aa7edb85632619f0556bdadab7ab95de5 (diff) |
Replace size_t with int and add the check for the EVP_MD_get_size()
Replace the type of "digest_size" with int to avoid implicit conversion when it is assigned by EVP_MD_get_size().
Moreover, add the check for the "digest_size".
Fixes: 29ce1066bc ("Update the demos/README file because it is really old. New demos should provide best practice for API use. Add demonstration for computing a SHA3-512 digest - digest/EVP_MD_demo")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23924)
(cherry picked from commit 87e747000fef07c9ec43877bc5e9f2ca34f76a3b)
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions