summaryrefslogtreecommitdiffstats
path: root/crypto/include/internal/sm2.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/include/internal/sm2.h')
-rw-r--r--crypto/include/internal/sm2.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/crypto/include/internal/sm2.h b/crypto/include/internal/sm2.h
index af24c0146b..91420a520c 100644
--- a/crypto/include/internal/sm2.h
+++ b/crypto/include/internal/sm2.h
@@ -57,13 +57,11 @@ int SM2_verify(int type, const unsigned char *dgst, int dgstlen,
/*
* SM2 encryption
*/
-size_t SM2_ciphertext_size(const EC_KEY *key,
- const EVP_MD *digest,
- size_t msg_len);
+int SM2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest, size_t msg_len,
+ size_t *ct_size);
-size_t SM2_plaintext_size(const EC_KEY *key,
- const EVP_MD *digest,
- size_t msg_len);
+int SM2_plaintext_size(const EC_KEY *key, const EVP_MD *digest, size_t msg_len,
+ size_t *pt_size);
int SM2_encrypt(const EC_KEY *key,
const EVP_MD *digest,
@@ -76,8 +74,6 @@ int SM2_decrypt(const EC_KEY *key,
const uint8_t *ciphertext,
size_t ciphertext_len, uint8_t *ptext_buf, size_t *ptext_len);
-int ERR_load_SM2_strings(void);
-
# ifdef __cplusplus
}
# endif