openssl/providers/implementations
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
..
asymciphers Convert all {NAME}err() in providers/ to their corresponding ERR_raise() call 2020-11-11 12:15:48 +01:00
ciphers Update copyright year 2021-01-07 13:38:50 +00:00
digests Rename SHA3 internal functions so they have an ossl_ prefix 2020-11-19 07:39:13 +10:00
encode_decode DECODER: Adjust the library context of keys in our decoders 2020-12-17 12:02:08 +01:00
exchange Add EVP_KDF-X942 to the fips module 2020-12-02 12:15:05 +10:00
include/prov PROV: Add MSBLOB and PVK encoders 2020-12-15 14:27:37 +01:00
kdfs Add EVP_KDF-X942 to the fips module 2020-12-02 12:15:05 +10:00
kem Rename some occurrences of 'library_context' and 'lib_ctx' to 'libctx' 2020-10-15 12:00:21 +01:00
keymgmt Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
macs Convert all {NAME}err() in providers/ to their corresponding ERR_raise() call 2020-11-11 12:15:48 +01:00
rands rand: don't leak memory 2020-12-09 22:28:52 +10:00
signature Fix dsa & rsa signature dupctx() so that ctx->propq is strduped 2020-12-04 08:33:28 +10:00
storemgmt Avoid duplicate ends_with_dirsep functions 2020-11-11 16:05:56 +01:00
build.info Add KEM (Key encapsulation mechanism) support to providers 2020-09-19 18:08:46 +10:00