1 //! Local types that are equivalent to those generated for the SharedSecret HAL interface 2 3 use crate::{cbor_type_error, AsCborValue, CborError}; 4 use alloc::{ 5 format, 6 string::{String, ToString}, 7 vec::Vec, 8 }; 9 use kmr_derive::AsCborValue; 10 11 pub const KEY_AGREEMENT_LABEL: &str = "KeymasterSharedMac"; 12 pub const KEY_CHECK_LABEL: &str = "Keymaster HMAC Verification"; 13 14 #[derive(Debug, Clone, Eq, Hash, PartialEq, Default, AsCborValue)] 15 pub struct SharedSecretParameters { 16 pub seed: Vec<u8>, 17 pub nonce: Vec<u8>, 18 } 19