jedisct1 / libhydrogen

A lightweight, secure, easy-to-use crypto library suitable for constrained environments.
https://libhydrogen.org
Other
605 stars 90 forks source link

Kindly requesting to introduce a determinist variant of hydro_secretbox_keygen #101

Closed pavlos-christoforou closed 3 years ago

pavlos-christoforou commented 3 years ago

There is a hydro_sign_keygen_deterministic() API and would be nice to have a similar API for hydro_secretbox_keygen() (unless of course there are reasons not to). It is low priority for us as we can do this at a higher level but thought it may be useful to report it.

jedisct1 commented 3 years ago

This is a symmetric key. No other key is derived from it. Just fill it directly.

A hydro_secretbox_deterministic_keygen() would do nothing but copy the input bytes directly.