]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/crypto/sm2.h
Correctly calculate the length of SM2 plaintext given the ciphertext
[thirdparty/openssl.git] / include / crypto / sm2.h
index 165c01810f8cc20d73d6d19c92a9fc54554dc948..9ab6c0b722364b9e8554e2093675300e6a90bbe6 100644 (file)
@@ -67,8 +67,8 @@ int ossl_sm2_internal_verify(const unsigned char *dgst, int dgstlen,
 int ossl_sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest,
                              size_t msg_len, size_t *ct_size);
 
-int ossl_sm2_plaintext_size(const EC_KEY *key, const EVP_MD *digest,
-                            size_t msg_len, size_t *pt_size);
+int ossl_sm2_plaintext_size(const unsigned char *ct, size_t ct_size,
+                            size_t *pt_size);
 
 int ossl_sm2_encrypt(const EC_KEY *key,
                      const EVP_MD *digest,