Arm Mbed OS support forum

Sha-crypt function needed

a feature request:

I am using mbed_tls; in particular some crypto and hashing functions of it. There is a PBKDF2 function which I need.

However, I need to generate Unix password hashes like the ones stored in /etc/shadow. I need those on an embedded system (LPC55S69).

openssl has implemented sha-crypt from Ulrich Drepper (Unix crypt with SHA-256/512)
in the passwd function. Source code for reference is available here:
sha256-crypt.c source code [glibc/crypt/sha256-crypt.c] - Woboq Code Browser

I would love to see such an implementation in mbedtls.

Thank you & regards,
Steffen Norbert