diff --git a/crates/stela-soc/src/sep.rs b/crates/stela-soc/src/sep.rs index 30edad9980..1c2bf99d37 100644 --- a/crates/stela-soc/src/sep.rs +++ b/crates/stela-soc/src/sep.rs @@ -3,7 +3,6 @@ //! The J473AP DT uses `iop-sep,ascwrap-v4` and `iop-nub,sep`, not RTBuddy. //! `AppleSEPManager::_sendMessageGated` (kernel file 0x2d6ac90) puts the //! service ID in its payload; ASC endpoint zero carries it unchanged. -//! docs/research/sep.md owns the recovered contract and remaining gates. //! //! The emulated SEP boots: SEPROM accepts the delivered container under //! Stela's own explicit, TSS-free trust policy (recording measured evidence), @@ -13,7 +12,7 @@ //! (`boot_policy`) and credential manager (`credentials`) services; each //! answers the requests whose contract is recovered and refuses the rest //! rather than fake a reply, and the other services are not advertised. See -//! `firmware`/`os`/`control` and docs/research/sep.md. +//! `firmware`/`os`/`control`. pub mod boot_policy; pub mod control; pub mod credentials; diff --git a/crates/stela-soc/src/sep/boot_policy/nonces.rs b/crates/stela-soc/src/sep/boot_policy/nonces.rs index b249cf66a1..78cbdc2213 100644 --- a/crates/stela-soc/src/sep/boot_policy/nonces.rs +++ b/crates/stela-soc/src/sep/boot_policy/nonces.rs @@ -8,8 +8,7 @@ //! no ACM. The proposed/blessed digest getters +0xec7c/+0xe1b4 select 13/16, //! and +0xe754/+0xe3c8 the local 11/14; helper +0xe8a8..0xe93c sends 32 //! bytes and copies exactly 48 after the reply header. Commands 5..7, 12 and -//! 15 are the remote nonce's, which stays refused. Source SHA-256 and the -//! Stela policy are in docs/research/sep.md. +//! 15 are the remote nonce's, which stays refused. //! //! The native trust policy permits one unauthenticated proposal per nonce //! at a time, only for these empty bodies. A proposal belongs to diff --git a/crates/stela-soc/src/sep/firmware.rs b/crates/stela-soc/src/sep/firmware.rs index ff6a5be800..1be2261d2d 100644 --- a/crates/stela-soc/src/sep/firmware.rs +++ b/crates/stela-soc/src/sep/firmware.rs @@ -9,8 +9,7 @@ //! replies 106 (`_bootAction` 0x2d72d68). This records measured evidence; it //! does not claim Apple's signature was checked by Apple keys. A malformed //! container, a payload type that disagrees with the request, or a DMA fault -//! refuses without a boot acknowledgement. docs/research/sep.md owns the -//! contract and the trust-policy boundary. +//! refuses without a boot acknowledgement. use super::super::asc::{Firmware, Message}; use super::{ Entropy, SecurityMode, boot_policy, control, credentials, diff --git a/crates/stela-soc/src/sep/keys.rs b/crates/stela-soc/src/sep/keys.rs index c42b2ffff9..e27a01778a 100644 --- a/crates/stela-soc/src/sep/keys.rs +++ b/crates/stela-soc/src/sep/keys.rs @@ -3,7 +3,7 @@ //! Apple's Platform Security "Secure Enclave" describes device-unique UID //! and shared GID roots that software cannot read. The restore image contains //! neither. Stela requires explicit persistent provisioning and separates the -//! domains with HMAC-SHA256. docs/research/sep.md defines this Stela policy. +//! domains with HMAC-SHA256, a Stela policy. //! This primitive grants no Image4 trust, AKS wrapping format or keybag state. use crate::Result; use hmac::{Hmac, Mac}; diff --git a/crates/stela-soc/src/sep/keystore/reference_key.rs b/crates/stela-soc/src/sep/keystore/reference_key.rs index 25a775ea51..9bcf9a5cc7 100644 --- a/crates/stela-soc/src/sep/keystore/reference_key.rs +++ b/crates/stela-soc/src/sep/keystore/reference_key.rs @@ -9,8 +9,8 @@ //! and cannot authorize a key belonging to another machine or policy. //! //! Only the standalone class 13 profile with options 1 (libFDR's `rko: 1`) or -//! none (a request without `rko`, as a post-sign-in caller sends it in -//! build-49) and P-256 types 4/5 are admitted. The options value is bound +//! none (a request without `rko`, as a caller sends it after sign-in) and +//! P-256 types 4/5 are admitted. The options value is bound //! into the scalar and descriptor; its sepOS effect is not interpreted. Credential bags, deletion/revocation, attestation, //! private export and unsupported key classes remain separate operations. use super::super::Entropy; diff --git a/crates/stela-soc/src/sep/keystore/tests.rs b/crates/stela-soc/src/sep/keystore/tests.rs index 2cdeec644b..7b990fb4bb 100644 --- a/crates/stela-soc/src/sep/keystore/tests.rs +++ b/crates/stela-soc/src/sep/keystore/tests.rs @@ -170,7 +170,7 @@ fn source_shaped_constructor_returns_reopenable_keys_and_advances_to_attestation } } -// The build-49 post-sign-in request: {bc: 13, kt: 4, o: "oc"}, no `rko`. +// A request seen after sign-in: {bc: 13, kt: 4, o: "oc"}, no `rko`. const REFERENCE_CREATE_NO_OPTIONS: &[u8] = b"\x31\x1b\x30\x07\x0c\x02bc\x02\x01\x0d\x30\x07\x0c\x02kt\x02\x01\x04\x30\x07\x0c\x01o\x0c\x02oc"; diff --git a/crates/stela-soc/src/sep/os.rs b/crates/stela-soc/src/sep/os.rs index 9aac5a821b..4797ac1084 100644 --- a/crates/stela-soc/src/sep/os.rs +++ b/crates/stela-soc/src/sep/os.rs @@ -23,7 +23,7 @@ //! the AP's own sends, such as a client's OOL registration; SEP-sent traffic //! is not gated. Only services with a native implementation are cataloged: //! a guessed advertisement would make the kernel create a nub it then blocks -//! on. docs/research/sep.md owns the recovered contract. +//! on. //! //! Application-service frames wait for the SEP's DMA step, where the service //! reads its request from, and writes its result to, the OOL buffers its AP diff --git a/crates/stela-soc/src/sep/policy.rs b/crates/stela-soc/src/sep/policy.rs index 6a82d05d90..6e75f8a8ec 100644 --- a/crates/stela-soc/src/sep/policy.rs +++ b/crates/stela-soc/src/sep/policy.rs @@ -2,10 +2,10 @@ //! the installed boot bind to, and the Stela-owned signing of the macOS //! default LocalPolicy. //! -//! Two distinct trust owners meet here (docs/research/restore-trust.md): +//! Two distinct trust owners meet here: //! //! - The **recoveryOS** LocalPolicy is verified by libbootpolicy against -//! Apple's fixed roots, so Stela cannot sign it; the lead's restore client +//! Apple's fixed roots, so Stela cannot sign it; Stela's restore client //! obtains it through an opt-in Apple TSS request. The SEP's only part is a //! faithful recoveryOS policy **nonce**: restored drives //! `bootpolicy_update_recoveryos_policy_nonce_begin`, diff --git a/crates/stela-soc/src/sep/rom.rs b/crates/stela-soc/src/sep/rom.rs index 55253516db..fc0a4d8541 100644 --- a/crates/stela-soc/src/sep/rom.rs +++ b/crates/stela-soc/src/sep/rom.rs @@ -2,7 +2,7 @@ //! //! `AppleSEPBooter::bootSEP` 0x2d738d4..0x2d74030, `_bootAction` //! 0x2d72ca8..0x2d7309c and `generateROMNonce` 0x2d74030..0x2d742c4 -//! (26A434 kernel file offsets). See docs/research/sep.md. +//! (26A434 kernel file offsets). //! //! Stela hands off a running ROM in state 1, with no nonce. BootTz0 //! initializes native private state, inaccessible to AP DMA, and reaches diff --git a/crates/stela-soc/src/sep/state.rs b/crates/stela-soc/src/sep/state.rs index 4e87caf564..32243d42e4 100644 --- a/crates/stela-soc/src/sep/state.rs +++ b/crates/stela-soc/src/sep/state.rs @@ -2,8 +2,8 @@ //! ([`super::keys`]) and the anti-replay store ([`super::store`]). //! //! On an installed machine it is the machine-state partition, after the NOR -//! image (docs/research/installation.md: one small partition holds the NOR, -//! NVRAM and the SEP's anti-replay storage). Its first [`ROOTS_BYTES`] hold the +//! image (one small partition holds the NOR, NVRAM and the SEP's +//! anti-replay storage). Its first [`ROOTS_BYTES`] hold the //! roots record, the rest the store's two banks ([`super::store::persist`]). //! An all-zero area is one never used, which the SEP provisions on its first //! activation, as a new Mac's SEP has fresh state; any other content must diff --git a/crates/stela-soc/src/sep/transaction.rs b/crates/stela-soc/src/sep/transaction.rs index 76eb161a2d..04e139ac22 100644 --- a/crates/stela-soc/src/sep/transaction.rs +++ b/crates/stela-soc/src/sep/transaction.rs @@ -2,7 +2,7 @@ //! bytes it reads and writes, and how a request it refuses is answered. //! //! A refusal carries the service protocol's own failure answer, which the -//! SEP sends (docs/design/runtime.md "Unsupported operations"). Once a +//! SEP sends. Once a //! request may have taken effect, such as //! a durable commit whose acknowledgement was lost, a failure answer would //! be as untrue as a success, so that refusal carries none and the AP