1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Add the SM4 block cipher from the Chinese standard GB/T 32907-2016.

Patch from Daniel Wyatt
ok inoguchi, jsing
This commit is contained in:
tb 2019-03-17 17:46:00 +00:00
parent 8582425978
commit bdd6a4690d

View File

@ -1,4 +1,4 @@
/* $OpenBSD: openssl.c,v 1.28 2018/11/11 07:10:57 tb Exp $ */
/* $OpenBSD: openssl.c,v 1.29 2019/03/17 17:46:00 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@ -322,6 +322,13 @@ FUNCTION functions[] = {
{ FUNC_TYPE_CIPHER, "rc4", enc_main },
{ FUNC_TYPE_CIPHER, "rc4-40", enc_main },
#endif
#ifndef OPENSSL_NO_SM4
{ FUNC_TYPE_CIPHER, "sm4", enc_main },
{ FUNC_TYPE_CIPHER, "sm4-ecb", enc_main },
{ FUNC_TYPE_CIPHER, "sm4-cbc", enc_main },
{ FUNC_TYPE_CIPHER, "sm4-ofb", enc_main },
{ FUNC_TYPE_CIPHER, "sm4-cfb", enc_main },
#endif
#ifdef ZLIB
{ FUNC_TYPE_CIPHER, "zlib", enc_main },
#endif