EVP_SM3(3SSL)
π EVP_SM3 π
okay bestie, welcome to the EVP_SM3(3SSL) page β this is the OpenSSL manual, and we're talking about SM3 for EVP. it's short, it's sweet, it's giving "small but mighty" β¨
β¨ NAME β¨
EVP_sm3 β SM3 for EVP π
πΈ SYNOPSIS πΈ
#include <openssl/evp.h>
const EVP_MD *EVP_sm3(void);
like, that's the whole summoning ritual. two lines and a dream π«Ά
π¦ DESCRIPTION π¦
so SM3 is a cryptographic hash function with a 256-bit output, and it's defined in GB/T 32905-2016. she's official, she's standardised, she's here π
EVP_sm3()β the SM3 hash function. that's it. that's the girl. π
π NOTES π
bestie, listen, this part is important and it's giving β¨warningβ¨ energy:
calling this function multiple times has negative performance implications. like, not me finding out the hard way π
developers should be aware of that, and should consider using EVP_MD_fetch(3) with EVP_MD-SM3(7) instead. for the full tea, see "Performance" in crypto(7). π₯
π RETURN VALUES π
these functions return a EVP_MD structure that contains the implementation of the message digest. so you get the whole vibe back β the implementation, all wrapped up, ready to go π
β CONFORMING TO β
GB/T 32905-2016GM/T 0004-2012
she's certified, she's compliant, she ate π β¨
π₯ SEE ALSO π₯
go read those too, iykyk π§
π COPYRIGHT π
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>.
and that's a wrap, my love π«Ά this was EVP_SM3(3SSL) from OpenSSL 4.0.3, dated 2026-09-29 β no cap, that's the version and the date, periodt. πππ¦
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms