Argyle-Software / kyber

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

memfd support #69

Closed mberry closed 1 year ago

mberry commented 1 year ago

So this is an investigative issue looking into a feature that implements memfd support for Linux and Android platforms. This can offer additional side-channel protection, though it isn't immune to kernel exploits.

Essentially returning a file descriptor instead of a keypair and then running the encapsulation/encapsulation on that is the preliminary starting point here.

Additional reading:

https://lwn.net/Articles/812325/

https://lwn.net/Articles/918106/

mberry commented 1 year ago

Will put this in the "nice things to have" basket, end users should probably be more holistic about memfd usage if they are already utilising it.

Closing for lack of interest. Happy to reopen if someone is keen.