summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-03-09 11:53:33 +1000
committerShane Lontis <shane.lontis@oracle.com>2021-03-18 17:52:37 +1000
commit8a6e9125200223fa2294d3634d3dfec24857264b (patch)
tree456f123f76f8d213acc195450d4a8502cd2fda23 /include
parent7bbadfc15a446134d15d8fd0aa5362628b8c96be (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 'include')
-rw-r--r--include/crypto/sm4.h6
-rw-r--r--include/internal/sm3.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/include/crypto/sm4.h b/include/crypto/sm4.h
index 8195ab165c..e21ec81ca6 100644
--- a/include/crypto/sm4.h
+++ b/include/crypto/sm4.h
@@ -29,10 +29,10 @@ typedef struct SM4_KEY_st {
uint32_t rk[SM4_KEY_SCHEDULE];
} SM4_KEY;
-int SM4_set_key(const uint8_t *key, SM4_KEY *ks);
+int ossl_sm4_set_key(const uint8_t *key, SM4_KEY *ks);
-void SM4_encrypt(const uint8_t *in, uint8_t *out, const SM4_KEY *ks);
+void ossl_sm4_encrypt(const uint8_t *in, uint8_t *out, const SM4_KEY *ks);
-void SM4_decrypt(const uint8_t *in, uint8_t *out, const SM4_KEY *ks);
+void ossl_sm4_decrypt(const uint8_t *in, uint8_t *out, const SM4_KEY *ks);
#endif
diff --git a/include/internal/sm3.h b/include/internal/sm3.h
index fe84f1905e..db1d61f052 100644
--- a/include/internal/sm3.h
+++ b/include/internal/sm3.h
@@ -32,8 +32,8 @@ typedef struct SM3state_st {
unsigned int num;
} SM3_CTX;
-int sm3_init(SM3_CTX *c);
-int sm3_update(SM3_CTX *c, const void *data, size_t len);
-int sm3_final(unsigned char *md, SM3_CTX *c);
+int ossl_sm3_init(SM3_CTX *c);
+int ossl_sm3_update(SM3_CTX *c, const void *data, size_t len);
+int ossl_sm3_final(unsigned char *md, SM3_CTX *c);
#endif /* OSSL_INTERNAL_SM3_H */