aboutsummaryrefslogtreecommitdiff
path: root/test/sm3_internal_test.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-06-21 12:14:14 +1000
committerPauli <pauli@openssl.org>2021-06-21 12:14:14 +1000
commitb6c276e77295e6d9f99b83c64c3c7df5ca8c5d97 (patch)
tree2cc57bd9a326908b28a40f7054732823c5c75f36 /test/sm3_internal_test.c
parentc3708f9f7acb37c78fcbb1ee635d47aa0266e8ba (diff)
downloadopenssl-b6c276e77295e6d9f99b83c64c3c7df5ca8c5d97.zip
openssl-b6c276e77295e6d9f99b83c64c3c7df5ca8c5d97.tar.gz
openssl-b6c276e77295e6d9f99b83c64c3c7df5ca8c5d97.tar.bz2
sm3: fix function names after the big ossl_ prefix addition.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/15843)
Diffstat (limited to 'test/sm3_internal_test.c')
-rw-r--r--test/sm3_internal_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/sm3_internal_test.c b/test/sm3_internal_test.c
index a92da80..2aefea8 100644
--- a/test/sm3_internal_test.c
+++ b/test/sm3_internal_test.c
@@ -59,15 +59,15 @@ static int test_sm3(void)
SM3_CTX ctx1, ctx2;
unsigned char md1[SM3_DIGEST_LENGTH], md2[SM3_DIGEST_LENGTH];
- if (!TEST_true(sm3_init(&ctx1))
- || !TEST_true(sm3_update(&ctx1, input1, sizeof(input1)))
- || !TEST_true(sm3_final(md1, &ctx1))
+ if (!TEST_true(ossl_sm3_init(&ctx1))
+ || !TEST_true(ossl_sm3_update(&ctx1, input1, sizeof(input1)))
+ || !TEST_true(ossl_sm3_final(md1, &ctx1))
|| !TEST_mem_eq(md1, SM3_DIGEST_LENGTH, expected1, SM3_DIGEST_LENGTH))
return 0;
- if (!TEST_true(sm3_init(&ctx2))
- || !TEST_true(sm3_update(&ctx2, input2, sizeof(input2)))
- || !TEST_true(sm3_final(md2, &ctx2))
+ if (!TEST_true(ossl_sm3_init(&ctx2))
+ || !TEST_true(ossl_sm3_update(&ctx2, input2, sizeof(input2)))
+ || !TEST_true(ossl_sm3_final(md2, &ctx2))
|| !TEST_mem_eq(md2, SM3_DIGEST_LENGTH, expected2, SM3_DIGEST_LENGTH))
return 0;