-.\" $OpenBSD: EVP_DigestInit.3,v 1.24 2022/08/31 14:27:34 tb Exp $
+.\" $OpenBSD: EVP_DigestInit.3,v 1.25 2023/04/23 18:24:01 job Exp $
.\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000
.\" selective merge up to: OpenSSL a95d7574 Jul 2 12:16:38 2017 -0400
.\"
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 31 2022 $
+.Dd $Mdocdate: April 23 2023 $
.Dt EVP_DIGESTINIT 3
.Os
.Sh NAME
.Nm EVP_sha256 ,
.Nm EVP_sha384 ,
.Nm EVP_sha512 ,
+.Nm EVP_sha512_224 ,
+.Nm EVP_sha512_256 ,
.Nm EVP_ripemd160 ,
.Nm EVP_get_digestbyname ,
.Nm EVP_get_digestbynid ,
.Ft const EVP_MD *
.Fn EVP_sha512 void
.Ft const EVP_MD *
+.Fn EVP_sha512_224 void
+.Ft const EVP_MD *
+.Fn EVP_sha512_256 void
+.Ft const EVP_MD *
.Fn EVP_ripemd160 void
.Ft const EVP_MD *
.Fo EVP_get_digestbyname
structures for the MD5, SHA1, SHA224, SHA256, SHA384, SHA512 and
RIPEMD160 digest algorithms respectively.
.Pp
+.Fn EVP_sha512_224
+and
+.Fn EVP_sha512_256
+return an
+.Vt EVP_MD
+structure that provides the truncated SHA512 variants SHA512/224 and SHA512/256,
+respectively.
+.Pp
.Fn EVP_md5_sha1
returns an
.Vt EVP_MD
and have been available since
.Ox 4.0 .
.Pp
+.Fn EVP_sha512_224
+and
+.Fn EVP_sha512_256
+first appeared in OpenSSL 1.1.1 and has been available since
+.Ox 7.4 .
+.Pp
.Fn EVP_MD_CTX_ctrl
first appeared in OpenSSL 1.1.0 and has been available since
.Ox 5.7 .