---
name: "libressl-EVP_sm3"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-EVP_sm3"
---

# libressl-EVP\_sm3(3)

SM3 hash function for EVP

## NAME

**EVP\_sm3** – SM3 hash function for EVP

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/evp.h\>**

*const* *EVP\_MD* *\**\

**EVP\_sm3**(*void*);

## DESCRIPTION

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.

## SEE ALSO

evp(3), EVP\_DigestInit(3)

## 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.
