search for: sm3final

Displaying 1 result from an estimated 1 matches for "sm3final".

2024 Aug 06
1
[PATCH] Add SM3 secure hash algorithm
..._DIGEST_MAX] = { (md_init_fn *) SHA512Init, (md_update_fn *) SHA512Update, (md_final_fn *) SHA512Final + }, + { + SSH_DIGEST_SM3, + "SM3", + SM3_BLOCK_LENGTH, + SM3_DIGEST_LENGTH, + sizeof(SM3_CTX), + (md_init_fn *) SM3Init, + (md_update_fn *) SM3Update, + (md_final_fn *) SM3Final } }; diff --git a/digest-openssl.c b/digest-openssl.c index e073a807b148..ad958a84c245 100644 --- a/digest-openssl.c +++ b/digest-openssl.c @@ -61,6 +61,7 @@ const struct ssh_digest digests[] = { { SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, { SSH_DIGEST_SHA384, "SHA384&q...