hmac_sha512_usingrawkey(9)
π hmac_sha512_usingrawkey(9)
okay bestie, welcome to hmac_sha512_usingrawkey(9) from the Kernel API Manual β we're doing HMAC-SHA512 in one shot, using a raw key, and it's giving exactly what it says on the tin. β¨
π NAME
hmac_sha512_usingrawkey β compute HMAC-SHA512 in one shot, using a raw key. That's the whole function, and it ate. π
β¨ SYNOPSIS
okay bestie, here's the exact signature β do not freestyle the types:
void hmac_sha512_usingrawkey (const u8 *raw_key , size_t raw_key_len ,
const u8 *data , size_t data_len , u8 out[static SHA512_DIGEST_SIZE] );
πΈ ARGUMENTS
raw_keyβ the raw HMAC-SHA512 key. Literally the raw key, bestie. πraw_key_lenβ the key length in bytes. All key lengths are supported, so no cap. β¨dataβ the message data. π¨data_lenβ the data length in bytes. πoutβ (output) the resulting HMAC-SHA512 value. This is where the HMAC-SHA512 result lands. π
π¦ DESCRIPTION
If you're using the key multiple times, prefer to use hmac_sha512_preparekey followed by multiple calls to hmac_sha512 instead. That's the move. Periodt. π
π CONTEXT
Any context. That's the whole section, and it's iconic. π
π SEE ALSO
Kernel file: ./include/crypto/sha2.h β and the whole crypto family reunion is linked here, bestie:
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_init_usingrawkey(9),hmac_sha512_update(9),hmac_sha512_final(9),hmac_sha512(9)
mwah π β source/version: ./include/crypto; date: October 2026. Stay cryptographic, bestie. π«Ά
π¦ 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