interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / kernel / artifact / osc_receipt_test_anchor.h

39 lines · 2272 bytes Raw Blame History
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_test_anchor.h -- THROWAWAY TEST material for realization receipts (aienos#383). It protects nothing.
18 *
19 * osc_rcpt_test_pk: omega checker2's TEST receipt key (omega spec/one-layer-receipts.md section 3, class TEST),
20 * seed = SHA-256("OMEGA-CHECKER2-TEST-KEY-v1 NOT FOR PRODUCTION"), public on purpose. This is NOT the OSC unit
21 * container TEST key (osc_unit_test_anchor.h, aien-protocols test1): the two keys sign different things and are
22 * anchored separately. tests/test_osc_receipt.c checks these bytes against the checker2-minted fixtures
23 * (tests/fixtures/osc_receipt, PROVENANCE.txt).
24 *
25 * osc_rcpt_qual_revoked_id: the id of tests/fixtures/osc_receipt/n_revoked_id.rcpt, on the qualification
26 * policy's revoked-id list so the REVOKED path is exercised (test checks it is that file's SHA-256).
27 *
28 * Compiled only into the host tests and into the TEST-anchor qualification image (CK_SEED0B_TEST_ANCHOR=1,
29 * banner "TEST ONLY"); never into a release image's anchor set. */
30#ifndef AIENOS_CK_OSC_RECEIPT_TEST_ANCHOR_H
31#define AIENOS_CK_OSC_RECEIPT_TEST_ANCHOR_H
32#include <stdint.h>
33static const uint8_t osc_rcpt_test_pk[32] = {
34 0x60, 0x28, 0x10, 0xd4, 0x3c, 0x01, 0x15, 0xdf, 0x87, 0x7b, 0x0c, 0xf8, 0xc3, 0x27, 0x01, 0x0e,
35 0x5a, 0x7e, 0x57, 0x04, 0x90, 0xc8, 0x5e, 0x31, 0x46, 0x6c, 0x0c, 0xff, 0x6c, 0xa3, 0x74, 0xc5};
36static const uint8_t osc_rcpt_qual_revoked_id[32] = {
37 0xe4, 0x52, 0x12, 0xd1, 0xea, 0x69, 0x56, 0xe4, 0xef, 0x65, 0xb9, 0xa8, 0x39, 0xda, 0x20, 0xaf,
38 0x3f, 0xf9, 0xbd, 0x53, 0xc5, 0x66, 0xcd, 0x23, 0x3a, 0x6a, 0xe2, 0x6c, 0xad, 0x65, 0x8f, 0xf3};
39#endif