KCAPI_MD_INIT(3)
β¨ KCAPI_MD_INIT(3) β¨
okay bestie, welcome to kcapi_md_init(3) β the programming interface moment where we birth a message digest handle and introduce it to the kernel π«Ά this is from the libkcapi crew and it's literally the first step of your hash journey, no cap.
πΈ NAME πΈ
kcapi_md_init β initialize cipher handle π
π SYNOPSIS π
int kcapi_md_init(struct kcapi_handle ** handle,
const char * ciphername, uint32_t flags);
π¦ ARGUMENTS π¦
handleβ [out] the cipher handle, filled in during the call. She's empty when you hand her over, she's full of possibilities when you get her back β¨ciphernameβ [in] the kernel crypto API cipher name, exactly as it's specified in/proc/crypto. Not vibes-based, bestie, go look it up πflagsβ [in]</in> flags that specify the type of cipher handle. You're telling the kernel what kind of girl she is π
π DESCRIPTION π
So like, this function initializes a (keyed) message digest handle and establishes the connection to the kernel. That's the whole assignment. She sets it up, she links it up, done π§
On success, a pointer to the kcapi_handle object is returned in *handle. And then β and this is important, don't skip this β you should call kcapi_md_destroy afterwards to free the resources. Clean up after yourself, it's giving responsible. π
Return values, in order, because we love a full list:
0β upon success π-ENOENTβ algorithm not available π-EOPNOTSUPPβAF_ALGfamily not available π-EINVALβ accept syscall failed π-ENOMEMβ cipher handle cannot be allocated π΅
π AUTHOR π
Stephan Mueller <smueller@chronox.de> β Author. The main character who wrote this fr fr π
β COPYRIGHT β
That's the whole page, bestie! Sending you off with all the love and zero leaks: this was libkcapi Manual 1.5.0, dated July 2025 β periodt ππ πΈ
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms