EVP_SM3(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

πŸŽ€ EVP_SM3(3) πŸŽ€

okay so welcome to the Library Functions Manual entry for EVP_sm3, and bestie it's literally the SM3 hash function for EVP. πŸ’…

🌸 NAME 🌸

EVP_sm3 β€” SM3 hash function for EVP

✨ SYNOPSIS ✨

library β€œlibcrypto” #include <openssl/evp.h>

const EVP_MD *
EVP_sm3(void);

πŸ’– DESCRIPTION πŸ’–

SM3 is a cryptographic hash function with a 256-bit output. It's part of the Chinese β€œCommercial Cryptography” suite of algorithms, which is required for certain commercial applications in China. That's the whole vibe: 256 bits, Chinese commercial crypto suite, required for certain commercial apps in China. No cap. πŸ”₯

🫢 RETURN VALUES 🫢

EVP_sm3() returns a pointer to a static EVP_MD object implementing the SM3 hash function. It's giving β€œhere's your static EVP_MD object, go off.” ✨

πŸ‘‘ SEE ALSO πŸ‘‘

🌈 STANDARDS 🌈

GB/T 32905-2016 and GM/T 0004-2012 β€” yes bestie, those exact standards. πŸŽ€

πŸ¦‹ HISTORY πŸ¦‹

EVP_sm3() first appeared in OpenSSL 1.1.1 and has been available since OpenBSD 6.5. Periodt. πŸ’œ


xoxo, your Debian bestie πŸ’– β€” this page is from Debian, dated June 8, 2025. mwah πŸ’‹

πŸ“¦ where this page comes from