You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cherry-picked from BoringSSL b0ef87e5e3ba9a4f4b5bba4434f6f2e630507b48.
Replace evp_pkey_set_method with evp_pkey_set0, which sets both the
method and key data together, avoiding half-initialized EVP_PKEY states.
Adapted for AWS-LC:
- RSA/DSA/EC_KEY/DH assign functions and EVP_PKEY_new_raw_* are in
different files than BoringSSL (FIPS module vs evp_extra)
- AWS-LC has a pkey.type field that must also be set (BoringSSL derives
type from ameth)
- ed25519/x25519 set_priv_raw/set_pub_raw callbacks are shared with
ed25519ph (AWS-LC specific), so callers (EVP_PKEY_new_raw_*,
evp_asn1 decode) set the method via evp_pkey_set0 before invoking
the callback, rather than having the callback set it
- KEM and PQDSA (AWS-LC specific) updated to create key first, then
call evp_pkey_set0 with method+data together
0 commit comments