Argyle-Software / kyber

A rust implementation of the Kyber post-quantum KEM
https://docs.rs/pqc_kyber/
Apache License 2.0
164 stars 37 forks source link

Pass keypairs only to the functions #29

Open mberry opened 1 year ago

mberry commented 1 year ago

Keypairs components should not be individual inputs for the API.

The entire keypair should be passed to the functions. Perhaps add something like a strict mode also that confirms correctness for any end users faced with adversarial input.