From 8a6e9125200223fa2294d3634d3dfec24857264b Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Tue, 9 Mar 2021 11:53:33 +1000 Subject: Add ossl_ symbols for sm3 and sm4 Partial fix for #12964 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14473) --- providers/implementations/ciphers/cipher_sm4_hw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'providers/implementations/ciphers') diff --git a/providers/implementations/ciphers/cipher_sm4_hw.c b/providers/implementations/ciphers/cipher_sm4_hw.c index 5cfa81d46f..e370574384 100644 --- a/providers/implementations/ciphers/cipher_sm4_hw.c +++ b/providers/implementations/ciphers/cipher_sm4_hw.c @@ -15,14 +15,14 @@ static int cipher_hw_sm4_initkey(PROV_CIPHER_CTX *ctx, PROV_SM4_CTX *sctx = (PROV_SM4_CTX *)ctx; SM4_KEY *ks = &sctx->ks.ks; - SM4_set_key(key, ks); + ossl_sm4_set_key(key, ks); ctx->ks = ks; if (ctx->enc || (ctx->mode != EVP_CIPH_ECB_MODE && ctx->mode != EVP_CIPH_CBC_MODE)) - ctx->block = (block128_f)SM4_encrypt; + ctx->block = (block128_f)ossl_sm4_encrypt; else - ctx->block = (block128_f)SM4_decrypt; + ctx->block = (block128_f)ossl_sm4_decrypt; return 1; } -- cgit v1.2.3