hcrypto_misc(3)
β¨ NAME β¨
hcrypto_misc β the hcrypto miscellaneous functions, aka the little grab-bag of crypto goodies that didn't fit anywhere else π
πΈ SYNOPSIS πΈ
Functions
int PKCS5_PBKDF2_HMAC (const void *password, size_t password_len,
const void *salt, size_t salt_len, unsigned long iter,
const EVP_MD *md, size_t keylen, void *key)
int PKCS5_PBKDF2_HMAC_SHA1 (const void *password, size_t password_len,
const void *salt, size_t salt_len, unsigned long iter,
size_t keylen, void *key)
π Detailed Description π
okay so bestie, this page is the home of the key-derivation girlies. two functions, both doing the PKCS5 thing: you hand over a password, a salt and an iteration counter, and it hands you back a shiny crypto key. no cap, that's the whole vibe. π
π Function Documentation π
int PKCS5_PBKDF2_HMAC (const void * password, size_t password_len, const void * salt, size_t salt_len, unsigned long iter, const EVP_MD * md, size_t keylen, void * key)
literally exactly what PKCS5 says on the tin: take a password, a salt and an iteration counter, and turn them into a crypto key. the digest function is yours to pick here, which is the main character energy move of this one. β¨
Parameters
passwordβ the password. πpassword_lenβ how long that password is.saltβ the salt. (yes, just salt. iconic.)salt_lenβ how long the salt is.iterβ the iteration counter.mdβ the digest function.keylenβ the output key length.keyβ the output key itself. the glow-up destination π
Returns
1 on success, anything that isn't 1 on failure. simple as that, fr fr.
int PKCS5_PBKDF2_HMAC_SHA1 (const void * password, size_t password_len, const void * salt, size_t salt_len, unsigned long iter, size_t keylen, void * key)
same energy, same deal: per PKCS5, it converts a password, a salt and an iteration counter into a crypto key. the difference? this one already knows the digest β it's the SHA1 flavor, so there's no md to pass in. lowkey convenient π
Parameters
passwordβ the password. π¦password_lenβ length of the password.saltβ salt.salt_lenβ length of the salt.iterβ iteration counter.keylenβ the output key length.keyβ the output key. π«Ά
Returns
1 on success, non-1 on failure. periodt.
π§ Author π§
this one was generated automatically by Doxygen for the Heimdal crypto library, straight from the source code. not me having a ghostwriter π
Version7.8.0, datedTue Nov 15 2022β that's the whole footer, bestie, and this page is officially wrapped π bye!!
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- epel 10: heimdal-devel 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-devel 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms