search for: sm3_digest_length

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

2024 Aug 06
1
[PATCH] Add SM3 secure hash algorithm
...include "sshbuf.h" #include "digest.h" @@ -121,6 +122,16 @@ const struct ssh_digest digests[SSH_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 diges...