Lines Matching refs:HwBccError
41 pub use err::HwBccError;
65 fn validate_response(self, resp: u32) -> Result<(), HwBccError> { in validate_response() argument
68 return Err(HwBccError::InvalidCmdResponse); in validate_response()
158 type Error = HwBccError;
166 return Err(HwBccError::InvalidCmdResponse); in deserialize()
172 return Err(HwBccError::BadLen); in deserialize()
182 return Err(HwBccError::BadLen); in deserialize()
189 return Err(HwBccError::BadLen); in deserialize()
219 fn recv_resp(session: &Handle, cmd: BccCmd, buf: &mut [u8]) -> Result<HwBccResponse, HwBccError> { in recv_resp() argument
226 return Err(HwBccError::System(Error::from(response.status as c_long))); in recv_resp()
232 fn read_payload(resp: HwBccResponse, buf: &mut [u8]) -> Result<&[u8], HwBccError> { in read_payload() argument
236 return Err(HwBccError::BadLen); in read_payload()
271 ) -> Result<DiceArtifacts<'a>, HwBccError> { in get_dice_artifacts() argument
274 return Err(HwBccError::BadLen); in get_dice_artifacts()
307 pub fn ns_deprivilege() -> Result<(), HwBccError> { in ns_deprivilege()
334 pub fn get_bcc<'a>(test_mode: HwBccMode, bcc: &'a mut [u8]) -> Result<&'a [u8], HwBccError> { in get_bcc() argument
337 return Err(HwBccError::BadLen); in get_bcc()
376 ) -> Result<&'a [u8], HwBccError> { in sign_data() argument
379 return Err(HwBccError::BadLen); in sign_data()
384 return Err(HwBccError::BadLen); in sign_data()