summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sm3/sm3.c
diff options
context:
space:
mode:
authorbeck <>2023-07-08 06:13:08 +0000
committerbeck <>2023-07-08 06:13:08 +0000
commite1ea593bb1fac828fbd14800422748eda7a2febd (patch)
treef544977528a6206be45abe2972a94adb7095aa0e /src/lib/libcrypto/sm3/sm3.c
parent9a67247dade8301b319163999154fc477bea9462 (diff)
downloadopenbsd-e1ea593bb1fac828fbd14800422748eda7a2febd.tar.gz
openbsd-e1ea593bb1fac828fbd14800422748eda7a2febd.tar.bz2
openbsd-e1ea593bb1fac828fbd14800422748eda7a2febd.zip
Hide symbols in sm3
ok tb@ jsing@
Diffstat (limited to 'src/lib/libcrypto/sm3/sm3.c')
-rw-r--r--src/lib/libcrypto/sm3/sm3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/sm3/sm3.c b/src/lib/libcrypto/sm3/sm3.c
index df4a4e8229..a787006434 100644
--- a/src/lib/libcrypto/sm3/sm3.c
+++ b/src/lib/libcrypto/sm3/sm3.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sm3.c,v 1.4 2023/07/07 19:37:54 beck Exp $ */ 1/* $OpenBSD: sm3.c,v 1.5 2023/07/08 06:13:08 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2018, Ribose Inc 3 * Copyright (c) 2018, Ribose Inc
4 * 4 *
@@ -20,6 +20,8 @@
20#include <openssl/sm3.h> 20#include <openssl/sm3.h>
21 21
22#include "sm3_local.h" 22#include "sm3_local.h"
23LCRYPTO_ALIAS(SM3_Update);
24LCRYPTO_ALIAS(SM3_Final);
23 25
24int 26int
25SM3_Init(SM3_CTX *c) 27SM3_Init(SM3_CTX *c)
@@ -35,6 +37,7 @@ SM3_Init(SM3_CTX *c)
35 c->H = SM3_H; 37 c->H = SM3_H;
36 return 1; 38 return 1;
37} 39}
40LCRYPTO_ALIAS(SM3_Init);
38 41
39void 42void
40SM3_block_data_order(SM3_CTX *ctx, const void *p, size_t num) 43SM3_block_data_order(SM3_CTX *ctx, const void *p, size_t num)