Home
last modified time | relevance | path

Searched defs:HwCryptoError (Results 1 – 9 of 9) sorted by relevance

/aosp_15_r20/trusty/user/app/sample/hwcryptohal/server/
Dopaque_key.rs123 pub(crate) fn new(op_type: HkdfOperationType) -> Result<Self, HwCryptoError> { in new() argument
130 pub(crate) fn add_binary_string(&mut self, binary_string: &[u8]) -> Result<(), HwCryptoError> { in add_binary_string() argument
142 ) -> Result<(), HwCryptoError> { in add_owned_binary_string() argument
148 pub(crate) fn add_unsigned_integer(&mut self, value: u64) -> Result<(), HwCryptoError> { in add_unsigned_integer() argument
154 pub(crate) fn create_key_derivation_context(self) -> Result<Vec<u8>, HwCryptoError> { in create_key_derivation_context() argument
170 fn new(policy: &KeyPolicy) -> Result<Self, HwCryptoError> { in new() argument
182 fn get_policy(&self) -> Result<KeyPolicy, HwCryptoError> { in get_policy() argument
194 fn try_clone(&self) -> Result<Self, HwCryptoError> { in try_clone() argument
210 ) -> Result<bool, HwCryptoError> { in check_protection_id_settings() argument
233 fn try_clone(&self) -> Result<Self, HwCryptoError> { in try_clone() argument
[all …]
Dcrypto_operation.rs50 fn new(pattern_parameters: &PatternParameters) -> Result<Self, HwCryptoError> { in new() argument
83 ) -> Result<usize, HwCryptoError>; in get_operation_req_size() argument
90 ) -> Result<usize, HwCryptoError>; in operation() argument
95 fn update_aad(&mut self, _input: &DataToProcess) -> Result<(), HwCryptoError> { in update_aad() argument
105 ) -> Result<(), HwCryptoError> { in set_operation_pattern() argument
115 ) -> Result<usize, HwCryptoError>; in update() argument
117 fn finish(&mut self, output: &mut DataToProcess) -> Result<usize, HwCryptoError>; in finish() argument
119 fn get_req_size_finish(&self) -> Result<usize, HwCryptoError>; in get_req_size_finish() argument
121 fn get_req_size_update(&self, input: &DataToProcess) -> Result<usize, HwCryptoError>; in get_req_size_update() argument
125 fn update_aad(&mut self, _input: &DataToProcess) -> Result<(), HwCryptoError> { in update_aad() argument
[all …]
Dcmd_processing.rs142 pub(crate) fn try_slice(&mut self, len: usize) -> Result<&[u8], HwCryptoError> { in try_slice() argument
165 ) -> Result<(), HwCryptoError> { in read_into_slice() argument
198 pub(crate) fn append_slice(&mut self, from: &[u8]) -> Result<(), HwCryptoError> { in append_slice() argument
221 ) -> Result<(), HwCryptoError> { in read_from_slice() argument
271 ) -> Result<DataToProcess<'a>, HwCryptoError> { in allocate_buffer_end_vector() argument
308 fn len(&self) -> Result<usize, HwCryptoError> { in len() argument
319 fn start_offset(&self) -> Result<usize, HwCryptoError> { in start_offset() argument
336 ) -> Result<(usize, usize, usize), HwCryptoError> { in get_limits() argument
369 fn new(memory_buffer_parameters: &MemoryBufferParameter) -> Result<Self, HwCryptoError> { in new() argument
409 fn get_memory_slice<'a>(&'a mut self) -> Result<VolatileSlice<'a>, HwCryptoError> { in get_memory_slice() argument
[all …]
Dhelpers.rs34 ) -> Result<KeyMaterial, HwCryptoError> { in aidl_hmac_explicit_key_to_rust_key_material() argument
43 ) -> Result<KeyMaterial, HwCryptoError> { in aidl_explicit_key_to_rust_key_material() argument
62 ) -> Result<bool, HwCryptoError> { in symmetric_encryption_block_based() argument
71 pub(crate) fn aidl_to_rust_digest(key_type: &KeyType) -> Result<keymint::Digest, HwCryptoError> { in aidl_to_rust_digest() argument
82 ) -> Result<crypto::aes::CipherMode, HwCryptoError> { in aidl_to_rust_aes_cipher_params() argument
126 ) -> Result<KmSymmetricOperation, HwCryptoError> { in aidl_to_rust_symmetric_direction() argument
136 ) -> Result<KeyUse, HwCryptoError> { in direction_to_key_usage() argument
Dservice_encryption_key.rs119 pub(crate) fn generate(wrapped_content_type: EncryptedContent) -> Result<Self, HwCryptoError> { in generate() argument
137 ) -> Result<Vec<u8>, HwCryptoError> { in derive_raw_service_encryption_key() argument
159 ) -> Result<crypto::aes::Key, HwCryptoError> { in derive_service_encryption_key() argument
174 ) -> Result<Vec<u8>, HwCryptoError> { in encrypt_content_service_encryption_key() argument
204 ) -> Result<(Self, Vec<u8>), HwCryptoError> { in decrypt_content_service_encryption_key() argument
329 fn get_encryption_key(header_version: u32, key_context: &[u8]) -> Result<Vec<u8>, HwCryptoError> { in get_encryption_key() argument
349 ) -> Result<Vec<u8>, HwCryptoError> { in derive_key_hkdf() argument
364 ) -> Result<[u8; KEY_DERIVATION_CTX_LENGTH], HwCryptoError> { in parse_cborium_bytes_to_fixed_array() argument
385 ) -> Result<u32, HwCryptoError> { in parse_cborium_u32() argument
Dhwcrypto_device_key.rs80 fn new_current(uuid: Uuid) -> Result<Self, HwCryptoError> { in new_current() argument
86 fn new_current_encrypted(uuid: Uuid) -> Result<Vec<u8>, HwCryptoError> { in new_current_encrypted() argument
91 fn check_version(&self) -> Result<(), HwCryptoError> { in check_version() argument
99 fn check_context(&self, connection: ConnectionInformation) -> Result<(), HwCryptoError> { in check_context() argument
109 ) -> Result<(), HwCryptoError> { in check_encrypted_context() argument
114 fn is_context_current(encrypted_ctx: &[u8]) -> Result<bool, HwCryptoError> { in is_context_current() argument
120 fn decrypt_context(encrypted_context: &[u8]) -> Result<Self, HwCryptoError> { in decrypt_context() argument
134 fn encrypt_context(mut self) -> Result<Vec<u8>, HwCryptoError> { in encrypt_context() argument
142 fn get_stable_context(encrypted_context: &[u8]) -> Result<Vec<u8>, HwCryptoError> { in get_stable_context() argument
213 ) -> Result<DiceBoundKeyResult, HwCryptoError> { in derive_dice_policy_bound_key() argument
[all …]
Dcrypto_operation_context.rs66 ) -> Result<(), HwCryptoError> { in process_all_steps() argument
/aosp_15_r20/trusty/user/app/sample/hwcryptohal/common/
Derr.rs44 pub enum HwCryptoError { enum
53 impl HwCryptoError { impl
59 impl From<kmr_wire::CborError> for HwCryptoError { implementation
65 impl From<TipcError> for HwCryptoError { implementation
71 impl From<kmr_common::Error> for HwCryptoError { implementation
77 impl From<CoseError> for HwCryptoError { implementation
83 impl From<TryReserveError> for HwCryptoError { implementation
89 impl From<VolatileMemoryError> for HwCryptoError { implementation
95 impl From<TryFromSliceError> for HwCryptoError { implementation
127 impl<T> From<PoisonError<T>> for HwCryptoError { implementation
Dpolicy.rs69 fn new(key_policy: &KeyPolicy) -> Result<Self, crate::err::HwCryptoError> { in new()
252 pub fn check_key_policy(key_policy: &KeyPolicy) -> Result<(), HwCryptoError> { in check_key_policy() argument
298 pub fn cbor_serialize_key_policy(key_policy: &KeyPolicy) -> Result<Vec<u8>, HwCryptoError> { in cbor_serialize_key_policy() argument
306 pub fn cbor_policy_to_aidl(cbor_key_policy: &[u8]) -> Result<KeyPolicy, HwCryptoError> { in cbor_policy_to_aidl() argument