This series fixes correctness and robustness issues in uadk_engine and uadk_provider, covering OpenSSL 3.x callback gaps, DH/ECDH/ ECDSA/RSA/SM2 algorithm paths, and shared infrastructure. Chenghai Huang (2): uadk_engine: fix integer type issues uadk: replace magic expt=1 with named poll constants Weili Qian (21): uadk_provider: add gen_get_params callbacks for OpenSSL 3.4+ uadk_provider: fix log message in ec software fallback uadk_provider: add EC_GROUP_CHECK_TYPE to EC gen_settable_params uadk_provider: fallback to software for DHKEM IKM key derivation uadk/dh: clear priv_key bit 0 for g=2 quadratic non-residue uadk/dh: allow q parameter in hardware key generation uadk/dh: add small subgroup and derived secret validation uadk: support cofactor ECDH mode with hardware acceleration uadk_provider/ec: validate preset private key upper bound in keygen uadk_provider/ecx: fix return values for keyexch optional callbacks uadk_provider/rsa: fallback to software for multi-prime keygen uadk_provider/rsa: copy PSS params to generated key uadk_engine: use BN_priv_rand_range for EC private key uadk_engine: do not fallback on RSA decrypt padding failure uadk_provider: check sig_r/s size before BN_bn2bin uadk_provider: relax RSA decrypt flen check uadk_engine: return -1 instead of -ENOMEM from RSA callbacks uadk_engine: merge cipher_ber_to_bin into sm2_decrypt_init_iot uadk_provider: return FAIL from verify_recover stubs uadk_provider: remove redundant c3 check from sm2 decrypt uadk: remove redundant NULL checks and initializations src/uadk.h | 2 + src/uadk_aead.c | 12 ++-- src/uadk_cipher.c | 8 +-- src/uadk_cipher_adapter.h | 2 +- src/uadk_dh.c | 61 ++++++++++++++++-- src/uadk_ec.c | 83 ++++++++++++++++++++++--- src/uadk_ecx.c | 1 - src/uadk_pkey.c | 6 +- src/uadk_prov.h | 2 + src/uadk_prov_aead.c | 3 +- src/uadk_prov_cipher.c | 3 +- src/uadk_prov_dh.c | 69 ++++++++++++++++++++- src/uadk_prov_digest.c | 3 +- src/uadk_prov_ec_kmgmt.c | 40 +++++++++++- src/uadk_prov_ecdh_exch.c | 124 +++++++++++++++++++++++-------------- src/uadk_prov_ecdsa.c | 9 ++- src/uadk_prov_ecx.c | 127 ++++++++++++++++++++------------------ src/uadk_prov_hmac.c | 3 +- src/uadk_prov_pkey.c | 2 +- src/uadk_prov_pkey.h | 33 ++++++++-- src/uadk_prov_rsa.c | 3 +- src/uadk_prov_rsa_enc.c | 7 ++- src/uadk_prov_rsa_kmgmt.c | 36 +++++++++++ src/uadk_prov_sm2_enc.c | 11 +--- src/uadk_prov_sm2_kmgmt.c | 19 ++++++ src/uadk_prov_sm2_sign.c | 4 +- src/uadk_rsa.c | 25 ++++---- src/uadk_sm2.c | 115 +++++++++++++--------------------- 29 files changed, 564 insertions(+), 258 deletions(-) -- 2.43.0