diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-03-09 11:53:33 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2021-03-18 17:52:37 +1000 |
commit | 8a6e9125200223fa2294d3634d3dfec24857264b (patch) | |
tree | 456f123f76f8d213acc195450d4a8502cd2fda23 /test | |
parent | 7bbadfc15a446134d15d8fd0aa5362628b8c96be (diff) |
Add ossl_ symbols for sm3 and sm4
Partial fix for #12964
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14473)
Diffstat (limited to 'test')
-rw-r--r-- | test/sm4_internal_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sm4_internal_test.c b/test/sm4_internal_test.c index 0a5ea738e5..6e18b19090 100644 --- a/test/sm4_internal_test.c +++ b/test/sm4_internal_test.c @@ -54,21 +54,21 @@ static int test_sm4_ecb(void) SM4_KEY key; uint8_t block[SM4_BLOCK_SIZE]; - SM4_set_key(k, &key); + ossl_sm4_set_key(k, &key); memcpy(block, input, SM4_BLOCK_SIZE); - SM4_encrypt(block, block, &key); + ossl_sm4_encrypt(block, block, &key); if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected, SM4_BLOCK_SIZE)) return 0; for (i = 0; i != 999999; ++i) - SM4_encrypt(block, block, &key); + ossl_sm4_encrypt(block, block, &key); if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected_iter, SM4_BLOCK_SIZE)) return 0; for (i = 0; i != 1000000; ++i) - SM4_decrypt(block, block, &key); + ossl_sm4_decrypt(block, block, &key); if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, input, SM4_BLOCK_SIZE)) return 0; |