openssl/include/crypto
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
..
__DECC_INCLUDE_EPILOGUE.H
__DECC_INCLUDE_PROLOGUE.H
aes_platform.h
aria.h
asn1_dsa.h
asn1.h
asn1err.h Update copyright year 2020-11-26 14:18:57 +00:00
async.h
asyncerr.h Update copyright year 2020-11-26 14:18:57 +00:00
bioerr.h Update copyright year 2020-11-26 14:18:57 +00:00
bn_conf.h.in
bn_dh.h
bn_srp.h
bn.h
bnerr.h Update copyright year 2020-11-26 14:18:57 +00:00
buffererr.h Update copyright year 2020-11-26 14:18:57 +00:00
chacha.h
cmll_platform.h
cmperr.h Update copyright year 2020-11-26 14:18:57 +00:00
cms.h
cmserr.h Update copyright year 2020-11-26 14:18:57 +00:00
comperr.h Update copyright year 2020-11-26 14:18:57 +00:00
conferr.h Update copyright year 2020-11-26 14:18:57 +00:00
crmferr.h Update copyright year 2020-11-26 14:18:57 +00:00
cryptlib.h
cryptoerr.h openssl_hexstr2buf_sep(): Prevent misleading 'malloc failure' errors on short input 2020-12-10 15:19:55 +01:00
cterr.h Update copyright year 2020-11-26 14:18:57 +00:00
ctype.h
decoder.h
decodererr.h Update copyright year 2020-11-26 14:18:57 +00:00
des_platform.h
dh.h DECODER: Adjust the library context of keys in our decoders 2020-12-17 12:02:08 +01:00
dherr.h Update copyright year 2020-11-26 14:18:57 +00:00
dsa.h DECODER: Adjust the library context of keys in our decoders 2020-12-17 12:02:08 +01:00
dsaerr.h Update copyright year 2020-11-26 14:18:57 +00:00
dso_conf.h.in
ec.h DECODER: Adjust the library context of keys in our decoders 2020-12-17 12:02:08 +01:00
ecerr.h Update copyright year 2020-11-26 14:18:57 +00:00
ecx.h DECODER: Adjust the library context of keys in our decoders 2020-12-17 12:02:08 +01:00
encoder.h
encodererr.h Update copyright year 2020-11-26 14:18:57 +00:00
engine.h
engineerr.h Update copyright year 2020-11-26 14:18:57 +00:00
err.h Update copyright year 2020-11-26 14:18:57 +00:00
ess.h
esserr.h Update copyright year 2020-11-26 14:18:57 +00:00
evp.h Drop OPENSSL_NO_RSA everywhere 2020-12-20 12:19:42 +01:00
evperr.h Move the caching of cipher constants into evp_cipher_from_dispatch 2020-12-23 21:12:18 +01:00
httperr.h Update copyright year 2020-11-26 14:18:57 +00:00
lhash.h
md32_common.h
modes.h
objects.h
objectserr.h Update copyright year 2020-11-26 14:18:57 +00:00
ocsperr.h Update copyright year 2020-11-26 14:18:57 +00:00
pem.h PEM: Unlock MSBLOB and PVK functions from 'no-dsa' and 'no-rc4' 2020-12-13 10:27:31 +01:00
pemerr.h Update copyright year 2020-11-26 14:18:57 +00:00
pkcs7.h
pkcs7err.h Update copyright year 2020-11-26 14:18:57 +00:00
pkcs12err.h Update copyright year 2020-11-26 14:18:57 +00:00
poly1305.h
punycode.h
rand_pool.h
rand.h
randerr.h Update copyright year 2020-11-26 14:18:57 +00:00
rsa.h DECODER: Adjust the library context of keys in our decoders 2020-12-17 12:02:08 +01:00
rsaerr.h Update copyright year 2020-11-26 14:18:57 +00:00
security_bits.h
sha.h Update copyright year 2020-11-26 14:18:57 +00:00
siphash.h
siv.h
sm2.h Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
sm2err.h Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
sm4.h
sparse_array.h
store.h
storeerr.h Update copyright year 2020-11-26 14:18:57 +00:00
tserr.h Update copyright year 2020-11-26 14:18:57 +00:00
types.h
uierr.h Update copyright year 2020-11-26 14:18:57 +00:00
x509.h Fix x509_crl propq so that it uses a copy 2020-12-04 08:22:24 +10:00
x509err.h Update copyright year 2020-11-26 14:18:57 +00:00
x509v3.h
x509v3err.h Update copyright year 2020-11-26 14:18:57 +00:00