diff --git a/services/root-keys/src/main.rs b/services/root-keys/src/main.rs index f503152c5..4c28f278c 100644 --- a/services/root-keys/src/main.rs +++ b/services/root-keys/src/main.rs @@ -85,6 +85,12 @@ mod implementation { use num_traits::*; use crate::{SignatureResult, GatewareRegion, MetadataInFlash}; + #[derive(Debug, Copy, Clone)] + #[allow(dead_code)] + pub enum FpgaKeySource { + Bbram, + Efuse, + } #[allow(dead_code)] pub struct RootKeys { password_type: Option, @@ -179,6 +185,9 @@ mod implementation { pub fn is_pcache_boot_password_valid(&self) -> bool { false } + pub fn fpga_key_source(&self) -> FpgaKeySource { + FpgaKeySource::Efuse + } pub fn fetch_gw_metadata(&self, _region_enum: GatewareRegion) -> MetadataInFlash { MetadataInFlash {