aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / kernel / artifact / osc_receipt_anchor.h
| 1 | /* SPDX-License-Identifier: Apache-2.0 |
| 2 | * Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /* osc_receipt_anchor.h -- receipt trust inputs that are not TEST material (aienos#383). |
| 18 | * |
| 19 | * osc_rcpt_owner_root_pk: Drake's owner root public key from the aienos#380 ceremony |
| 20 | * (docs/native/PI5-8-OWNER-CEREMONY.md; the private key lives on a YubiKey, PIV slot 9c). A release-mode verifier |
| 21 | * honours no other owner anchor (omega spec/one-layer-receipts.md section 6 step 2). It is the one OWNER receipt |
| 22 | * anchor of both kernel policies (core/osc_admit.c ck_osc_policy, aienos#387): docs/OWNER_KEY_CEREMONY.md |
| 23 | * section 7 records that it may sign realization receipts. Nothing in this repository signs with it. |
| 24 | * tests/test_osc_receipt.c checks the bytes against the ceremony record and an owner-signed receipt against it. |
| 25 | * |
| 26 | * osc_rcpt_checker_ids: the accepted checker2 identities (spec section 5). One entry: checker2 of omega |
| 27 | * 265ce82a (omega#448), `checker2 version` checker_id. A changed checker2 has a new identity and its receipts are |
| 28 | * refused UNTRUSTED_CHECKER until it is added here. */ |
| 29 | #ifndef AIENOS_CK_OSC_RECEIPT_ANCHOR_H |
| 30 | #define AIENOS_CK_OSC_RECEIPT_ANCHOR_H |
| 31 | #include <stdint.h> |
| 32 | static const uint8_t osc_rcpt_owner_root_pk[32] = { |
| 33 | 0x57, 0x8a, 0xda, 0x3c, 0xb0, 0xc2, 0xd1, 0x54, 0x62, 0x3a, 0xc0, 0x89, 0x19, 0x10, 0x23, 0xc8, |
| 34 | 0xad, 0x4b, 0xc5, 0xe6, 0x3b, 0x8c, 0xcd, 0x1a, 0x38, 0xdb, 0x2d, 0x67, 0x9b, 0x8c, 0x9e, 0x76}; |
| 35 | #define OSC_RCPT_N_CHECKERS 1u |
| 36 | static const uint8_t osc_rcpt_checker_ids[OSC_RCPT_N_CHECKERS][32] = { { |
| 37 | 0xd7, 0xaa, 0xe6, 0x01, 0xe7, 0x32, 0xb4, 0xb1, 0x45, 0xc7, 0x3e, 0x8d, 0x4f, 0x92, 0x76, 0x9f, |
| 38 | 0x56, 0xda, 0xc2, 0xe6, 0xfb, 0xa5, 0xf7, 0x7a, 0xed, 0x49, 0x0a, 0xec, 0x42, 0x9c, 0xf3, 0xba} }; |
| 39 | #endif |