EVP_SM3(3ossl)

✨ NAME ✨

okay bestie, this is the EVP_SM3(3ossl) page from the OpenSSL manual, and it's all about EVP_sm3 β€” SM3, but for EVP πŸ’–


🌸 SYNOPSIS 🌸

#include <openssl/evp.h>

const EVP_MD *EVP_sm3(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

SM3 is a cryptographic hash function with a 256-bit output, defined in GB/T 32905-2016. she's giving secure, she's giving standardized, no cap πŸ’…

  • EVP_sm3() β€” the SM3 hash function. that's it, that's the girl. literally the whole vibe ✨

πŸ’€ NOTES πŸ’€

okay so real talk, bestie β€” the devs need to know about the negative performance implications of calling this function multiple times 😭 like, don't just keep hitting it in a loop, that's not the move.

instead, consider using EVP_MD_fetch(3) with EVP_MD-SM3(7). and if you wanna know more, go read "Performance" in crypto(7). iykyk 🫢


πŸ‘‘ RETURN VALUES πŸ‘‘

these functions return a EVP_MD structure that contains the implementation of the message digest. if you want the deets on what that EVP_MD structure actually is, check EVP_MD_meth_new(3). periodt πŸ’–


πŸŽ€ CONFORMING TO πŸŽ€

GB/T 32905-2016 and GM/T 0004-2012. she's certified, she's compliant, she's iconic 🌈⭐


🧚 SEE ALSO 🧚


Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved. Copyright 2017 Ribose Inc. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.


okay that's the whole page bestie, tysm for reading πŸ₯° this was version 3.5.9, dated 2026-09-29, and yeah β€” that's the EVP_SM3(3ossl) manual page, done and dusted, slay πŸ’…βœ¨

πŸ“¦ where this page comes from