sigoden / dufs

A file server that supports static serving, uploading, searching, accessing control, webdav...
Other
5.45k stars 259 forks source link

post quantum support of rustls #376

Closed hsqStephenZhang closed 2 months ago

hsqStephenZhang commented 2 months ago

Specific Demand

Can we add support of post quantum cryptography? rustls has the official support of this with rustls-post-quantum, and chrome has support of post-quantum algorithms since v116.

Implement Suggestion

all we need to do is to add one lien of code of installing the default algorithm of X25519Kyber768Draft00:

rustls_post_quantum::provider().install_default().unwrap();

and add the configuration flag to Args can also be done quickly. I'd like to submit the PR if the idea is ok.

sigoden commented 2 months ago

image

Unless it becomes mainstream, I don't see the need to support it now

hsqStephenZhang commented 2 months ago

Got it