diff options
author | Xu Yizhou <xuyizhou1@huawei.com> | 2023-08-23 17:30:09 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-08-24 14:57:35 +0200 |
commit | 6399d7856c75abde9ed23782d10960013de03810 (patch) | |
tree | d45527466a10cd60f73d5da80752ba9086665bf4 /crypto/ec/ec_local.h | |
parent | ce7a9e23fb1ea249e08c3dfa9c9f701a701f2719 (diff) | |
download | openssl-6399d7856c75abde9ed23782d10960013de03810.tar.gz |
Optimize SM2 on aarch64
Signed-off-by: Xu Yizhou <xuyizhou1@huawei.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20754)
Diffstat (limited to 'crypto/ec/ec_local.h')
-rw-r--r-- | crypto/ec/ec_local.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/ec/ec_local.h b/crypto/ec/ec_local.h index 7181090fca..803786fdd2 100644 --- a/crypto/ec/ec_local.h +++ b/crypto/ec/ec_local.h @@ -653,6 +653,11 @@ int ossl_ec_key_simple_generate_key(EC_KEY *eckey); int ossl_ec_key_simple_generate_public_key(EC_KEY *eckey); int ossl_ec_key_simple_check_key(const EC_KEY *eckey); +#ifdef ECP_SM2P256_ASM +/* Returns optimized methods for SM2 */ +const EC_METHOD *EC_GFp_sm2p256_method(void); +#endif + int ossl_ec_curve_nid_from_params(const EC_GROUP *group, BN_CTX *ctx); /* EC_METHOD definitions */ |