mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Add production public key to the first key slot
This commit is contained in:
parent
47f529f2d2
commit
3e5b62aab3
1 changed files with 23 additions and 10 deletions
|
|
@ -1,18 +1,31 @@
|
|||
/// ===== PLACEHOLDER - bao1 signing HSM ceremony pending ======
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use crate::signatures::Pubkey;
|
||||
|
||||
/// Bao1 public key. Will be extracted from signing/bao1_id_ed25519_sk using extract_sk_credential.py
|
||||
pub const ID_ED25519_SK_PUB: [u8; 32] = [0u8; 32];
|
||||
/// Bao1 public key. Extracted from signing/bao1_id_ed25519_sk using extract_sk_credential.py
|
||||
pub const ID_ED25519_SK_PUB: [u8; 32] = [
|
||||
0xa8, 0x7a, 0x5f, 0x98, 0xda, 0xab, 0xfb, 0x51, 0x2f, 0xc3, 0xc2, 0xe5, 0x74, 0x9b, 0x3b, 0xeb, 0x19,
|
||||
0x23, 0x88, 0xd2, 0x01, 0x60, 0xa7, 0xdd, 0x58, 0x88, 0xfb, 0x9d, 0xa4, 0x09, 0x52, 0x3a,
|
||||
];
|
||||
|
||||
/// Bao1 public key "key handle"
|
||||
pub const ID_ED25519_SK_CRED_ID: [u8; 241] = [0u8; 241];
|
||||
pub const ID_ED25519_SK_CRED_ID: [u8; 241] = [
|
||||
0x01, 0x51, 0x65, 0x4a, 0xc1, 0x45, 0x55, 0xa9, 0x8e, 0xd8, 0xd5, 0x32, 0x78, 0x80, 0x01, 0xb9, 0x25,
|
||||
0xd6, 0x5f, 0xeb, 0xc9, 0xdb, 0x15, 0x6c, 0x4a, 0x1f, 0xa5, 0xf4, 0xcf, 0x1b, 0xcc, 0xa8, 0xf4, 0xa2,
|
||||
0x5e, 0xd7, 0xf7, 0xc8, 0xc4, 0x61, 0xeb, 0x8a, 0x16, 0xd9, 0xf8, 0x5b, 0x0e, 0xd1, 0x9b, 0x35, 0x12,
|
||||
0x71, 0xfa, 0x89, 0x66, 0x2f, 0xe1, 0x53, 0xf1, 0xda, 0x9a, 0xaf, 0x9a, 0xbd, 0xf5, 0x13, 0xe8, 0xd7,
|
||||
0xaa, 0xea, 0xf3, 0x93, 0x70, 0x77, 0x58, 0x91, 0xfd, 0xab, 0x3a, 0x3e, 0xcd, 0x38, 0x9a, 0xcd, 0x2d,
|
||||
0x00, 0x73, 0x7d, 0x2d, 0xf3, 0x10, 0xdd, 0x6a, 0x82, 0x80, 0x35, 0xd8, 0x83, 0xbe, 0x01, 0x2d, 0x80,
|
||||
0x98, 0x3b, 0xa3, 0x89, 0xba, 0x70, 0x64, 0xa9, 0x81, 0xa7, 0x8a, 0xb3, 0x28, 0xdd, 0x63, 0x46, 0xbf,
|
||||
0x00, 0x06, 0xf5, 0x17, 0x53, 0xd6, 0x0e, 0x7e, 0xce, 0xcd, 0x3a, 0x89, 0xb0, 0x87, 0x34, 0x59, 0x89,
|
||||
0x29, 0x8b, 0x9b, 0x7b, 0xd6, 0xea, 0xe4, 0x3f, 0x66, 0x92, 0xdc, 0xaf, 0x98, 0x1f, 0xad, 0x02, 0xe0,
|
||||
0xab, 0x88, 0x6c, 0x89, 0x56, 0x42, 0x26, 0xc9, 0x66, 0x49, 0x50, 0xee, 0xca, 0x38, 0x61, 0x61, 0xdb,
|
||||
0x84, 0xbd, 0x63, 0xd0, 0x46, 0x6b, 0x66, 0xdf, 0x59, 0xf2, 0xe1, 0xf9, 0xba, 0xfb, 0x0c, 0xb9, 0x60,
|
||||
0xbc, 0x9a, 0x4d, 0x2f, 0xb2, 0x0f, 0xc1, 0xb1, 0xb3, 0xb0, 0xc9, 0xeb, 0x5c, 0x3a, 0x41, 0x88, 0x56,
|
||||
0x58, 0x03, 0xe4, 0x85, 0xe5, 0xac, 0xc0, 0x6d, 0x15, 0xfe, 0xc1, 0xde, 0x98, 0x69, 0xb4, 0x0c, 0x61,
|
||||
0x05, 0xf0, 0x13, 0xab, 0xbd, 0x71, 0xc7, 0x0a, 0x22, 0x11, 0xec, 0xf0, 0x8a, 0xe3, 0xf3, 0x85, 0x90,
|
||||
0x83, 0xe9, 0x03,
|
||||
];
|
||||
/// Bao1 public key "relying party"
|
||||
pub const ID_ED25519_SK_RP: &'static str = "ssh:";
|
||||
|
||||
pub const PUBKEY: Pubkey = Pubkey {
|
||||
pk: ID_ED25519_SK_PUB,
|
||||
// Placeholder: tag is 0.
|
||||
tag: [0u8; 4], // *KEYSLOT_INITIAL_TAGS[BAO1_KEY_SLOT],
|
||||
};
|
||||
pub const PUBKEY: Pubkey = Pubkey { pk: ID_ED25519_SK_PUB, tag: *KEYSLOT_INITIAL_TAGS[BAO1_KEY_SLOT] };
|
||||
|
|
|
|||
Loading…
Reference in a new issue