hmac_sha512_..._usingrawkey(9)
π hmac_sha512_init_usingrawkey β the Kernel API Manual, bestie edition β¨
okay so real talk, this is a page from the Kernel API Manual (yes the whole manual, we're fancy like that π), and it's about one very specific little function that kicks off an HMAC-SHA512 thing. stay with me, it's actually cute.
πΈ NAME πΈ
hmac_sha512_init_usingrawkey β literally initialize an HMAC-SHA512 context for a brand new message, and you're doing it with a raw key. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
void hmac_sha512_init_usingrawkey (struct hmac_sha512_ctx *ctx , const
u8 *raw_key , size_t raw_key_len );
no return value, it's a void girlie β she just does the thing and dips π
π ARGUMENTS π
ctxβ (output) the HMAC context you're initializing. this is the main character, she gets filled in π«Άraw_keyβ the raw HMAC-SHA512 key itself. the actual key. no packaging, no nothing, just raw β¨raw_key_lenβ the key length in bytes. and like, all key lengths are supported. every single one. no cap π₯
π DESCRIPTION π
so here's the tea: this is the incremental path. if you don't need incremental computation though, bestie, consider hmac_sha512_usingrawkey instead β it's the one-shot version and honestly it's giving convenience π
π CONTEXT π
Any context. that's it. any. we don't gatekeep here π¦
β SEE ALSO β
the whole crypto friend group showed up, and yes i'm listing every single one of them because they all deserve their moment π
Kernel file ./include/crypto/sha2.h, plus:
struct sha224_ctx(9)sha224_init(9)sha224_update(9)sha224_final(9)sha224(9)struct hmac_sha224_key(9)struct hmac_sha224_ctx(9)hmac_sha224_preparekey(9)hmac_sha224_init(9)hmac_sha224_init_usingrawkey(9)hmac_sha224_update(9)hmac_sha224_final(9)hmac_sha224(9)hmac_sha224_usingrawkey(9)struct sha256_ctx(9)sha256_init(9)sha256_update(9)sha256_final(9)sha256(9)sha256_finup_2x(9)sha256_finup_2x_is_optimized(9)struct hmac_sha256_key(9)struct hmac_sha256_ctx(9)hmac_sha256_preparekey(9)hmac_sha256_init(9)hmac_sha256_init_usingrawkey(9)hmac_sha256_update(9)hmac_sha256_final(9)hmac_sha256(9)hmac_sha256_usingrawkey(9)struct sha384_ctx(9)sha384_init(9)sha384_update(9)sha384_final(9)sha384(9)struct hmac_sha384_key(9)struct hmac_sha384_ctx(9)hmac_sha384_preparekey(9)hmac_sha384_init(9)hmac_sha384_init_usingrawkey(9)hmac_sha384_update(9)hmac_sha384_final(9)hmac_sha384(9)hmac_sha384_usingrawkey(9)struct sha512_ctx(9)sha512_init(9)sha512_update(9)sha512_final(9)sha512(9)struct hmac_sha512_key(9)struct hmac_sha512_ctx(9)hmac_sha512_preparekey(9)hmac_sha512_init(9)hmac_sha512_update(9)hmac_sha512_final(9)hmac_sha512(9)hmac_sha512_usingrawkey(9)
that's the whole page babes π«Ά β and for the receipts: this one lives under ./include/crypto, dated October 2026, filed under hmac_sha512_..._usingrawkey(9). slay, go hash something π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms