Home GnuPG
Diffusion GnuPG 4c20d2d27395

gpg: Add arg session_algo to pk_decrypt.

Description

gpg: Add arg session_algo to pk_decrypt.

* common/kem.c: Move constants to the top.  Add some documentation.
* g10/pkglue.c (pk_encrypt): Add arguments session_key and factor code
out to ...
(do_encrypt_rsa_elg): here,
(do_encrypt_ecdh): and here,
(do_encrypt_kem): and here.
* g10/encrypt.c (write_pubkey_enc): Call with session key algorithm.

This makes it easier to review the code.

Details

Provenance
wernerAuthored on Apr 15 2024, 9:23 AM
Parents
rG35ef87d8d9db: scd:openpgp: Robust Data Object handling for constructed case.
Branches
Unknown
Tags
Unknown