Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/native/kernel/x86/tests/boot_verify_keys.c # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / native / kernel / x86 / tests / boot_verify_keys.c` 16 lines ยท 603 bytes Raw Blame History 1 /* boot_verify_keys.c -- the owner key table memory_x86.c reads (its extern 2 * ck_slot_loader_keys / ck_slot_loader_nkeys), held here so boot_verify_test.c 3 * can change it between runs. A separate file: memory_x86.c declares both const. */ 4 #include 5 #include 6 7 uint8_t ck_slot_loader_keys[4][32]; 8 unsigned ck_slot_loader_nkeys; 9 10 void bv_set_keys(const uint8_t (*keys)[32], unsigned n) 11 { 12 memset(ck_slot_loader_keys, 0, sizeof ck_slot_loader_keys); 13 for (unsigned i = 0; i < n && i < 4; i++) 14 memcpy(ck_slot_loader_keys[i], keys[i], 32); 15 ck_slot_loader_nkeys = n; 16 }