Erlang Forums
Read post

Expose more of OpenSSL’s KDFs in `crypto` (HKDF, scrypt, Argon2)

A proposal to expose more of OpenSSL's key derivation functions (KDFs) through Erlang's built-in `crypto` module. Currently only `pbkdf2_hmac/5` is available, but since libcrypto already links against OpenSSL's EVP_KDF, functions like scrypt, Argon2id, Concat KDF, and HKDF could be exposed without requiring a custom NIF. A unified `crypto:kdf/3` API is proposed, with algorithm-specific parameters passed as a map. Argon2 would require OpenSSL 3.2+, falling back to `notsup` on older versions. The post is an early-stage proposal seeking OTP team interest before a PR is opened.

    #cryptography#erlang
Yesterday•2m read time•From erlangforums.com
Post cover image
38 Impressions
Erlang Forums's image
Erlang Forums

Erlang Forums is a community-driven platform for discussions related to the Erlang programming langu...

35 Followers

•

85 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard