diff options
Diffstat (limited to 'crypto/sm2')
-rw-r--r-- | crypto/sm2/sm2_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sm2/sm2_crypt.c b/crypto/sm2/sm2_crypt.c index aedf9054c1..d6f9c81d8c 100644 --- a/crypto/sm2/sm2_crypt.c +++ b/crypto/sm2/sm2_crypt.c @@ -95,7 +95,7 @@ int sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest, size_t msg_len, if (field_size == 0 || md_size < 0) return 0; - *ct_size = 10 + 2 * field_size + (size_t)md_size + msg_len; + *ct_size = 12 + 2 * field_size + (size_t)md_size + msg_len; return 1; } |