pike.git / src / post_modules / Nettle / hash.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:246:    /*! @decl string(0..127) crypt_hash(string password, string salt, rounds)    *!    *! Password hashing function in @[crypt_md5()]-style.    *!    *! Implements the algorithm described in    *! @url{http://www.akkadia.org/drepper/SHA-crypt.txt@}.    *!    *! This is the algorithm used by @tt{crypt(2)@} in    *! methods @tt{$5$@} (SHA256) and @tt{$6$@} (SHA512).    *! +  *! The @[password] memory will be cleared before released. +  *!    *! @seealso    *! @[crypt_md5()]    */    PIKEFUN string(0..127) crypt_hash(string password, string salt, int rounds)    {    struct pike_string *res;    const struct nettle_hash *meta = THIS->meta;    void *ctx;    uint8_t *abcbuf;    uint8_t *dpbuf;