mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add backup manager ref in keystore
this claims the backup memory region - eventually we'll do something with it
This commit is contained in:
parent
77ae4f00a2
commit
cdf4a56d76
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ pub fn keystore(sid: SID) -> ! {
|
||||||
let hal = bao1x_hal_service::Hal::new();
|
let hal = bao1x_hal_service::Hal::new();
|
||||||
let mut rram = Reram::new();
|
let mut rram = Reram::new();
|
||||||
let mut store = KeyStore::init_mappings(&mut rram);
|
let mut store = KeyStore::init_mappings(&mut rram);
|
||||||
|
let mut backup_mgr = bao1x_hal::buram::BackupManager::new();
|
||||||
// does nothing if the keys are already initialized
|
// does nothing if the keys are already initialized
|
||||||
store.ensure_system_init(&mut rram);
|
store.ensure_system_init(&mut rram);
|
||||||
// derive the master key
|
// derive the master key
|
||||||
|
|
@ -40,6 +41,7 @@ pub fn keystore(sid: SID) -> ! {
|
||||||
buffer.replace(kwp).unwrap();
|
buffer.replace(kwp).unwrap();
|
||||||
}
|
}
|
||||||
Opcode::EphemeralOp => {
|
Opcode::EphemeralOp => {
|
||||||
|
// this will use the backup_mgr to store ephemeral secrets
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
Opcode::InvalidCall => {
|
Opcode::InvalidCall => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue