libressl-EVP_sm3(3)

libressl-EVP_sm33

Sm3 hash function for evp

Usage

Crypto Library (libcrypto, -lcrypto)

#include <openssl/evp.h>

const EVP_MD *

EVP_sm3(void);

Overview

SM3 is a cryptographic hash function with a 256-bit output. It is part of the Chinese “Commercial Cryptography” suite of algorithms which is required for certain commercial applications in China.

Return values

EVP_sm3() returns a pointer to a static EVP_MD object implementing the SM3 hash function.

Standards

GB/T 32905-2016 and GM/T 0004-2012

History

EVP_sm3() first appeared in OpenSSL 1.1.1 and has been available since OpenBSD 6.5.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.