summaryrefslogtreecommitdiffstats
path: root/crypto/sm2
diff options
context:
space:
mode:
authorJack Lloyd <jack.lloyd@ribose.com>2018-01-24 16:45:48 -0500
committerRichard Levitte <levitte@openssl.org>2018-03-19 14:33:25 +0100
commitdceb99a5fb1b065debc0b3fe19481eff80843732 (patch)
tree2437a694f0a2be0ca075030c30b4d01ea63a5179 /crypto/sm2
parent3d328a445c2ad0eff2e9e843c384711be58a7c2f (diff)
Support SM2 ECIES scheme via EVP
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4793)
Diffstat (limited to 'crypto/sm2')
-rw-r--r--crypto/sm2/sm2_crypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/sm2/sm2_crypt.c b/crypto/sm2/sm2_crypt.c
index a450146a7b..7e7be9d04a 100644
--- a/crypto/sm2/sm2_crypt.c
+++ b/crypto/sm2/sm2_crypt.c
@@ -303,6 +303,7 @@ int SM2_decrypt(const EC_KEY *key,
goto done;
rc = 1;
+ *ptext_len = msg_len;
done: