Home GnuPG

cipher: Slight refactoring of kem.c.

Description

cipher: Slight refactoring of kem.c.

* cipher/kem.c (_gcry_kem_keypair): Do not claim used variables.
Slight refactoring to allow for a enum-case check.
(_gcry_kem_encap): Ditto.
(_gcry_kem_decap): Ditto.
* cipher/kyber.h (crypto_kem_keypair_3) [KYBER_K]: Fix syntax error.

Details

Provenance
wernerAuthored on Feb 22 2024, 3:13 PM
Parents
rCb3750fb42a44: sha3: Fill OIDs and partial ASN.1 structs.
Branches
Unknown
Tags
Unknown