Searched refs:HwCryptoError (Results 1 – 6 of 6) sorted by relevance
/trusty/user/app/sample/hwcryptohal/common/ |
D | err.rs | 31 $crate::err::HwCryptoError::HalError { 42 pub enum HwCryptoError { enum 51 impl From<kmr_wire::CborError> for HwCryptoError { implementation 53 HwCryptoError::CborError(e) in from() 57 impl From<TipcError> for HwCryptoError { implementation 63 impl From<kmr_common::Error> for HwCryptoError { implementation 65 HwCryptoError::KmError(e) in from() 69 impl From<CoseError> for HwCryptoError { implementation 75 impl From<TryReserveError> for HwCryptoError { implementation 81 impl From<TryFromSliceError> for HwCryptoError { implementation [all …]
|
/trusty/user/app/sample/hwcryptohal/server/ |
D | service_encryption_key.rs | 22 use hwcryptohal_common::{err::HwCryptoError, hwcrypto_err}; 56 pub(crate) fn generate() -> Result<Self, HwCryptoError> { in generate() 71 ) -> Result<crypto::aes::Key, HwCryptoError> { in derive_service_encryption_key() argument 81 ) -> Result<Vec<u8>, HwCryptoError> { in encrypt_content_service_encryption_key() argument 86 .try_create_ciphertext::<_, HwCryptoError>( in encrypt_content_service_encryption_key() 110 ) -> Result<(Self, Vec<u8>), HwCryptoError> { in decrypt_content_service_encryption_key() argument 138 type Error = HwCryptoError; 192 type Error = HwCryptoError; 208 fn get_encryption_key(header_version: u32, key_context: &[u8]) -> Result<Vec<u8>, HwCryptoError> { in get_encryption_key() argument 228 ) -> Result<crypto::aes::Key, HwCryptoError> { in derive_key_hkdf() argument [all …]
|
D | opaque_key.rs | 29 use hwcryptohal_common::{err::HwCryptoError, hwcrypto_err}; 61 fn new() -> Result<BootUniqueValue, HwCryptoError> { in new() 71 fn get_boot_unique_value() -> Result<BootUniqueValue, HwCryptoError> { in get_boot_unique_value() 99 fn new(policy: &KeyPolicy) -> Result<Self, HwCryptoError> { in new() argument 113 fn get_policy(&self) -> Result<KeyPolicy, HwCryptoError> { in get_policy() argument 125 fn try_clone(&self) -> Result<Self, HwCryptoError> { in try_clone() argument 148 type Error = HwCryptoError; 179 fn try_clone(&self) -> Result<Self, HwCryptoError> { in try_clone() argument 196 ) -> Result<(), HwCryptoError> { in check_key_derivation_parameters() argument 215 ) -> Result<Vec<u8>, HwCryptoError> { in derive_raw_key_material() argument [all …]
|
D | hwcrypto_device_key.rs | 34 use hwcryptohal_common::{err::HwCryptoError, hwcrypto_err}; 83 fn get_current_version() -> Result<u32, HwCryptoError> { in get_current_version() 87 fn new_current(uuid: Uuid) -> Result<Self, HwCryptoError> { in new_current() argument 93 fn new_current_encrypted(uuid: Uuid) -> Result<Vec<u8>, HwCryptoError> { in new_current_encrypted() argument 98 fn check_version(&self) -> Result<(), HwCryptoError> { in check_version() argument 106 fn check_context(&self, connection: ConnectionInformation) -> Result<(), HwCryptoError> { in check_context() argument 116 ) -> Result<(), HwCryptoError> { in check_encrypted_context() argument 121 fn is_context_current(encrypted_ctx: &[u8]) -> Result<bool, HwCryptoError> { in is_context_current() argument 127 fn decrypt_context(encrypted_context: &[u8]) -> Result<Self, HwCryptoError> { in decrypt_context() argument 140 fn encrypt_context(mut self) -> Result<Vec<u8>, HwCryptoError> { in encrypt_context() argument [all …]
|
D | hwcrypto_ipc_server.rs | 21 use hwcryptohal_common::{err::HwCryptoError, hwcrypto_err}; 31 pub fn main_loop() -> Result<(), HwCryptoError> { in main_loop()
|
D | helpers.rs | 36 type Error = hwcryptohal_common::err::HwCryptoError;
|