Argyle-Software / kyber

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

Add import key #107

Open DorianCoding opened 6 months ago

DorianCoding commented 6 months ago

Hello,

I was wondering if we could add a function to import keys (from IO or somewhere else) and check them. A test is already performed for that but no functions on the documentation allows to import keys and check them, only generating them from randomness.

Therefore the programmer should code to detect if keys are valid (secret key matches the public key) if they are not generated by the script.

It also allows import zeroize on keypair and forbids copy.