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 / svc / continuity_resolve_sealed.h

42 lines · 1684 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/* continuity_resolve_sealed.h -- binds cr_source (continuity_resolve.h) to the
18 * real sealed Store (native/store/store_sealed.h). Reads only. */
19#ifndef CK_CONTINUITY_RESOLVE_SEALED_H
20#define CK_CONTINUITY_RESOLVE_SEALED_H
21
22#include "continuity_commit.h"
23#include "store_sealed.h"
24
25/* Source over the verified claims of an opened ss_store (P-3: kind and version
26 * come from the claim, no decryption to list). The store must stay open. */
27void cr_bind_sealed(struct cr_source *out, ss_store *s);
28
29/* Write side (cut 4): a cr_sink over ss_transact. hook/hook_arg are passed to
30 * every ss_transact (crash checkpoints ST_CP_*, SS_CP_*); NULL for none. */
31struct cr_sealed_sink {
32 ss_store *s;
33 st_hook hook;
34 void *hook_arg;
35};
36void cr_bind_sealed_sink(struct cr_sink *out, struct cr_sealed_sink *ctx);
37
38/* Raw-unit state digest of the Store region (units 0 and 1 of dev), as
39 * recovery_core.rs:109-133: an unreadable unit leaves its buffer zero. */
40void cr_state_digest_dev(const st_dev *dev, uint8_t out[32]);
41
42#endif