dajiaji / hpke-js

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
https://dajiaji.github.io/hpke-js/docs
MIT License
58 stars 9 forks source link

Consider adding ML-KEM #306

Open OR13 opened 1 month ago

OR13 commented 1 month ago

I'm testing JOSE and COSE HPKE with https://github.com/paulmillr/noble-post-quantum

I have some code blocks that use hpke-js for the DHKems and then I have to implement ML-KEM separately.

I also think that implementations of HPKE might consider starting to use the term "kem-ct" instead of "enc", ML-KEM based hpke should probably yield { ct, kem-ct } instead of { ct, enc }... It will be easier to align consuming implementations if parameters returned are not kem specific.

Or at least it should be documented that kem-ct is enc.

dajiaji commented 1 month ago

It's been a while.

The ML-KEM support for crystals-kyber-js, which is used under hpke-js, is almost complete. Someone involved with openpgp.js implemented the patch for crystals-kyber-js. I've been busy with my main job over the past month or two and haven't been able to address this, but it seems that the ML-KEM support for hpke-js can be implemented relatively soon.

Please wait a bit longer.