mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
put the test key into the devkey slot
i feel a little more comfortable with this because there are checks that *any* key in that slot would be treated as a devkey and would lead to key erasure. so just in case i messed up something in the other checks, this would trigger a key erasure. I think there is no way around signing at least a beta image containing the third party keys if i truly want to check all the paths, so trying to isolate what it can do is important.
This commit is contained in:
parent
cf267f096c
commit
f17b67c16d
1 changed files with 2 additions and 2 deletions
|
|
@ -266,8 +266,8 @@ pub fn sign_image(
|
||||||
.map_err(|e| format!("{}", e))?;
|
.map_err(|e| format!("{}", e))?;
|
||||||
let derived_public_key = sk.public_key();
|
let derived_public_key = sk.public_key();
|
||||||
|
|
||||||
// replace first random data with the derived public key of the fake signer
|
// replace devkey slot with the derived public key of the fake signer
|
||||||
header.sealed_data.pubkeys[0].pk.copy_from_slice(derived_public_key.as_ref());
|
header.sealed_data.pubkeys[3].pk.copy_from_slice(derived_public_key.as_ref());
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut protected = Vec::new();
|
let mut protected = Vec::new();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue