openssl/apps
Matt Caswell 849450746f Don't truncate the input when decrypting in pkeyutl
The pkeyutl app was truncating the input file for decryption leading to
incorrect results. This was probably ok historically when RSA was being
used for decryption which has short maximum sizes. This is not ok with SM2.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21272)
2023-06-26 09:28:23 +01:00
..
demoSRP apps & al : Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:28 +11:00
include apps/asn1parse: improve RFC7462 compliance 2023-06-09 09:47:34 +02:00
lib Don't truncate the input when decrypting in pkeyutl 2023-06-26 09:28:23 +01:00
CA.pl.in Abstract out policy and extensions in CA.pl 2021-11-16 15:48:08 +00:00
asn1parse.c apps/asn1parse: improve RFC7462 compliance 2023-06-09 09:47:34 +02:00
build.info CMP test server: move apps/{,lib/}cmp_mock_srv.c and apps/{,include/}cmp_mock_srv.h 2021-05-20 16:23:27 +02:00
ca-cert.srl
ca-key.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
ca-req.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
ca.c apps/ca.c: Handle EVP_PKEY_get_default_digest_name() returning 1 with "UNDEF" 2023-06-15 14:03:57 +02:00
cert.pem
ciphers.c Check that sk_SSL_CIPHER_value returns non-NULL value. 2022-09-20 18:27:17 +02:00
client.pem
cmp.c Fix new typos found by codespell 2023-06-18 16:53:09 +10:00
cms.c Enable some disabled __owurs 2023-02-07 11:56:27 -05:00
crl.c Update copyright year 2022-05-03 13:34:51 +01:00
crl2pkcs7.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
ct_log_list.cnf Remove unnecessary trailing whitespace 2019-02-05 16:25:11 +01:00
dgst.c List also non-fetchable hashes in openssl dgst -list 2023-04-14 14:40:41 +02:00
dhparam.c apps & al : Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:28 +11:00
dsa-ca.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
dsa-pca.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
dsa.c apps/{dsa,ec,rsa,pkey}.c: harmonize coding w.r.t. 'pubin' variable 2023-03-14 17:26:49 +01:00
dsa512.pem
dsa1024.pem
dsap.pem
dsaparam.c Added tests and updated help 2023-03-23 11:09:17 +11:00
ec.c apps/{dsa,ec,rsa,pkey}.c: harmonize coding w.r.t. 'pubin' variable 2023-03-14 17:26:49 +01:00
ecparam.c Support decode SM2 parameters 2022-08-23 11:08:11 +10:00
enc.c Include the default iteration count in the help for the enc command 2023-03-20 08:24:26 +11:00
engine.c apps & al : Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:28 +11:00
errstr.c Check non-option arguments 2020-12-15 11:47:17 +01:00
fipsinstall.c fipsinstall: add -pedantic option 2023-04-20 09:21:51 +10:00
gendsa.c APPS: dsaparam, gendsa: Support setting properties 2022-07-01 11:11:23 +02:00
genpkey.c Add help for pkeyopt values for the genpkey commandline app. 2023-02-23 10:12:35 -05:00
genrsa.c APPS: genrsa: Support setting properties 2022-08-17 09:20:41 +02:00
info.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
insta.ca.crt openssl-cmp.pod.in: Update and extend example using Insta Demo CA 2020-08-04 12:11:46 +02:00
kdf.c kdf: use the app's libctx and property query when searching for algorithms 2021-06-15 18:26:47 +10:00
list.c configure: introduce no-ecx to remove ECX related feature 2023-06-14 13:06:22 +10:00
mac.c Always use FORMAT_BINARY for infile 2022-09-20 08:18:25 +01:00
nseq.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
ocsp.c apps/ocsp: Tweak some places to make clear they refer to *lists* of certs 2023-04-27 15:45:36 +01:00
openssl-vms.cnf apps/openssl.cnf: fix reference to insta.ca.crt 2023-05-12 10:46:14 +02:00
openssl.c Add support for --version and synonyms 2023-05-18 17:18:10 +10:00
openssl.cnf apps/openssl.cnf: fix reference to insta.ca.crt 2023-05-12 10:46:14 +02:00
passwd.c Update copyright year 2022-05-03 13:34:51 +01:00
pca-cert.srl
pca-key.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
pca-req.pem Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
pkcs7.c Update copyright year 2022-05-03 13:34:51 +01:00
pkcs8.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
pkcs12.c Coverity 1528486: Avoid assignment of unused value of bags 2023-06-10 19:23:59 -04:00
pkey.c pkey: Imply public check if -pubin is specified 2023-01-17 12:18:50 +01:00
pkeyparam.c APPS: pkeyparam: Support setting properties 2022-08-17 09:20:41 +02:00
pkeyutl.c Don't truncate the input when decrypting in pkeyutl 2023-06-26 09:28:23 +01:00
prime.c Update copyright year 2022-05-03 13:34:51 +01:00
privkey.pem
progs.pl Convert ZLIB defines to OPENSSL_NO_ZLIB 2022-10-18 09:30:21 -04:00
rand.c Update copyright year 2022-05-03 13:34:51 +01:00
rehash.c Fix a bug where the result of rehash is unstable 2023-05-25 15:46:40 +02:00
req.c Cast the argument to unsigned char when calling isspace() 2023-06-09 17:30:28 +02:00
req.pem
rsa.c apps/{dsa,ec,rsa,pkey}.c: harmonize coding w.r.t. 'pubin' variable 2023-03-14 17:26:49 +01:00
rsa8192.pem Fix rsa8192.pem 2020-05-13 06:28:36 +02:00
rsautl.c apps/x509 etc.: allow private key input when public key is expected 2023-03-14 17:26:49 +01:00
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_client.c Fix typos found by codespell 2023-06-15 10:11:46 +10:00
s_server.c Coverity 1528490: Avoid assignment of unused value of i 2023-06-10 19:23:59 -04:00
s_time.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
server.pem Replace apps/server.pem with certificate with a sha256 signature. 2020-01-25 14:10:40 +01:00
server.srl
server2.pem
sess_id.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
smime.c apps/smime: Point out that the six operations are mutually exclusive and add check 2023-04-27 15:45:38 +01:00
speed.c configure: introduce no-ecx to remove ECX related feature 2023-06-14 13:06:22 +10:00
spkac.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
srp.c openssl srp: make index.txt parsing error more verbose 2021-05-24 14:37:00 +02:00
storeutl.c Fix openssl storeutl to allow serial + issuer 2022-12-14 09:33:25 +01:00
testCA.pem
testdsa.h Replace OSSL_PARAM_BLD_free_params() with OSSL_PARAM_free(). 2021-04-12 16:55:30 +10:00
testrsa.h Following the license change, modify the boilerplates in apps/ 2018-12-06 14:15:27 +01:00
timeouts.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
ts.c APPS: replace awkward and error-prone pattern by calls to new app_conf_try_string() 2023-05-25 09:04:35 +02:00
tsget.in convert tabs to spaces in two distributed Perl scripts 2021-09-14 07:21:22 +10:00
verify.c apps & al : Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:28 +11:00
version.c APPS: Improve diagnostics on missing/extra args and unknown cipher/digest 2021-12-07 15:26:40 +01:00
vms_decc_init.c VMS: move copy_argc to its own module and make it an aux source 2019-03-05 08:51:09 +01:00
x509.c Remove restriction to only cross-sign self-signed certificates 2023-06-20 16:38:33 +10:00