jlouis / enacl

Erlang bindings for NaCl / libsodium
MIT License
197 stars 59 forks source link

Add ops and mem limits to pwhash functions #35

Closed ECrownofFire closed 4 years ago

ECrownofFire commented 5 years ago

With these commits, the pwhash family of functions can accept either atoms (interactive, moderate, or sensitive) or positive integers (within crypto_pwhash_(OPS/MEM)LIMIT_(MAX/MIN)).

The versions that don't take limits are maintained, and simply default to interactive/interactive as they did before.

jlouis commented 5 years ago

Nice work, I'll have a look and get it in over the next couple of days.

jlouis commented 4 years ago

I'm behind on these, but your changes are now merged into Master.