X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fevp%2Fc_allc.c;h=086b3c4d51b4002b7e48c46ae6c0cb1ce8e789f6;hb=7467c87c6e88acca887bac0bf85ec0dc76fa522d;hp=ee77d65be9633c2c4e28aa12c44c0e86b7888868;hpb=bc32673869842c7f00ae7016040a612f516ead7e;p=oweals%2Fopenssl.git diff --git a/crypto/evp/c_allc.c b/crypto/evp/c_allc.c index ee77d65be9..086b3c4d51 100644 --- a/crypto/evp/c_allc.c +++ b/crypto/evp/c_allc.c @@ -79,6 +79,16 @@ void openssl_add_all_ciphers_int(void) EVP_add_cipher_alias(SN_seed_cbc, "seed"); #endif +#ifndef OPENSSL_NO_SM4 + EVP_add_cipher(EVP_sm4_ecb()); + EVP_add_cipher(EVP_sm4_cbc()); + EVP_add_cipher(EVP_sm4_cfb()); + EVP_add_cipher(EVP_sm4_ofb()); + EVP_add_cipher(EVP_sm4_ctr()); + EVP_add_cipher_alias(SN_sm4_cbc, "SM4"); + EVP_add_cipher_alias(SN_sm4_cbc, "sm4"); +#endif + #ifndef OPENSSL_NO_RC2 EVP_add_cipher(EVP_rc2_ecb()); EVP_add_cipher(EVP_rc2_cfb());