2
0
mirror of https://github.com/openssl/openssl.git synced 2025-02-23 14:42:15 +08:00
openssl/providers
Nicola Tuveri 9e49aff2aa Add SM2 private key range validation
According to the relevant standards, the valid range for SM2 private
keys is [1, n-1), where n is the order of the curve generator.

For this reason we cannot reuse the EC validation function as it is, and
we introduce a new internal function `sm2_key_private_check()`.

Partially fixes https://github.com/openssl/openssl/issues/8435

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13359)
2021-01-08 23:59:02 +02:00
..
common dsa: provider and library deprecation changes 2020-12-17 21:09:54 +01:00
fips Drop OPENSSL_NO_RSA everywhere 2020-12-20 12:19:42 +01:00
implementations Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
baseprov.c PROV: Re-implement all the keypair encoders 2020-11-11 12:43:27 +01:00
build.info providers/build.info: Tag the FIPS module, for the build file 2020-10-08 11:29:23 +02:00
decoders.inc Remove unnecessary guards around MSBLOB and PVK readers and writers 2020-12-13 10:27:31 +01:00
defltprov.c rand: add a provider side seed source. 2020-12-09 12:20:32 +10:00
encoders.inc PROV: Add MSBLOB and PVK encoders 2020-12-15 14:27:37 +01:00
legacyprov.c Rename some occurrences of 'library_context' and 'lib_ctx' to 'libctx' 2020-10-15 12:00:21 +01:00
nullprov.c null prov: fix gettable param array type. 2020-10-16 10:33:38 +10:00
prov_running.c
stores.inc