find_asymmetric_key(9)
π find_asymmetric_key(9) β the kernel API manual, but make it make sense π
okay so bestie, welcome to find_asymmetric_key, a page from the Kernel API Manual (yes, that one, the kernel) β¨ this is the whole vibe: you got a keyring, you got some IDs, and you wanna find the right key. let's GO π
πΈ NAME πΈ
find_asymmetric_key β find a key by ID, literally that's it, that's the whole function π
π¦ SYNOPSIS π¦
struct key * find_asymmetric_key (struct key *keyring , const struct
asymmetric_key_id *id_0 , const struct asymmetric_key_id *id_1 ,
const struct asymmetric_key_id *id_2 , bool partial );
like, look at all those parameters. she's got range π
β¨ ARGUMENTS β¨
keyringβ the keys to search, i.e. your little key stash πid_0β the first ID to look for, orNULLid_1β the second ID to look for, orNULL, and she gets matched together withid_0against the keyring keys'id[0]andid[1]π«Άid_2β the fallback ID π she matches against the keyring keys'id[2]if both of the other IDs areNULLpartialβ use partial match forid_0andid_1iftrue, exact iffalse. no cap, that's the whole switch π₯
π DESCRIPTION π
So the assignment is: find a key in the given keyring by identifier. periodt. β¨
The preferred identifier is the id_0 and the fallback identifier is the id_1. If both are given, the former is matched (exactly or partially) against either of the sought key's identifiers and the latter must match the found key's second identifier exactly. ikyk π
If both are missing, id_2 must match the sought key's third identifier exactly. that's the rule, bestie, she's strict about it π
ngl, the exactness caveat is the main character here βid_1andid_2don't do partial, they're exact only. don't come for me, that's just what the page says π
π SEE ALSO π
- Kernel file
./crypto/asymmetric_keys/asymmetric_type.c asymmetric_key_generate_id(9)asymmetric_key_id_same(9)asymmetric_key_id_partial(9)asymmetric_match_key_ids(9)asymmetric_key_hex_to_key_id(9)register_asymmetric_key_parser(9)unregister_asymmetric_key_parser(9)
go read those too, they're the friend group π§π
and that's the page, bestie!! this one lives in ./crypto/asymmetric_keys, dated October 2026, and we're out here in the Kernel API Manual section 9. slay, bye ππ
β¨
π¦ 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