diff options
author | Patrick Steuer <patrick.steuer@de.ibm.com> | 2019-09-19 15:31:27 +0200 |
---|---|---|
committer | Patrick Steuer <patrick.steuer@de.ibm.com> | 2019-09-25 15:53:53 +0200 |
commit | 19bd1fa1ef17ff0ac071402cb6b002f1c29e37b9 (patch) | |
tree | 721bd78ca88377bc1246e656d3c2d9f30ac46021 /crypto/sm2 | |
parent | s390x assembly pack: cleanse only sensitive fields (diff) | |
download | openssl-19bd1fa1ef17ff0ac071402cb6b002f1c29e37b9.tar.xz openssl-19bd1fa1ef17ff0ac071402cb6b002f1c29e37b9.zip |
s390x assembly pack: accelerate X25519, X448, Ed25519 and Ed448
using PCC and KDSA instructions.
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10004)
Diffstat (limited to 'crypto/sm2')
-rw-r--r-- | crypto/sm2/sm2_pmeth.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/sm2/sm2_pmeth.c b/crypto/sm2/sm2_pmeth.c index 56e015d94e..7613e333ec 100644 --- a/crypto/sm2/sm2_pmeth.c +++ b/crypto/sm2/sm2_pmeth.c @@ -309,7 +309,7 @@ static int pkey_sm2_digest_custom(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) return EVP_DigestUpdate(mctx, z, (size_t)mdlen); } -const EVP_PKEY_METHOD sm2_pkey_meth = { +static const EVP_PKEY_METHOD sm2_pkey_meth = { EVP_PKEY_SM2, 0, pkey_sm2_init, @@ -349,3 +349,8 @@ const EVP_PKEY_METHOD sm2_pkey_meth = { pkey_sm2_digest_custom }; + +const EVP_PKEY_METHOD *sm2_pkey_method(void) +{ + return &sm2_pkey_meth; +} |