MCPcopy Create free account
hub / github.com/F-Stack/f-stack / keybuf_init

Function keybuf_init

freebsd/opencrypto/crypto.c:271–286  ·  view source on GitHub ↗

Obtain the key buffer from boot metadata */

Source from the content-addressed store, hash-verified

269
270/* Obtain the key buffer from boot metadata */
271static void
272keybuf_init(void)
273{
274 caddr_t kmdp;
275
276 kmdp = preload_search_by_type("elf kernel");
277
278 if (kmdp == NULL)
279 kmdp = preload_search_by_type("elf64 kernel");
280
281 keybuf = (struct keybuf *)preload_search_info(kmdp,
282 MODINFO_METADATA | MODINFOMD_KEYBUF);
283
284 if (keybuf == NULL)
285 keybuf = &empty_keybuf;
286}
287
288/* It'd be nice if we could store these in some kind of secure memory... */
289struct keybuf *

Callers 1

crypto_initFunction · 0.85

Calls 2

preload_search_by_typeFunction · 0.85
preload_search_infoFunction · 0.85

Tested by

no test coverage detected