Searched refs:try_push (Results 1 – 13 of 13) sorted by relevance
/system/authgraph/core/src/ |
D | arc.rs | 205 .try_push(Identity::from_slice(&id)?) in from_cbor_value() 223 cbor_permissions.try_push((key, val)).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value() 228 cbor_permissions.try_push((key, val)).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value() 234 array.try_push(Value::Bytes(a.to_vec()?)).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value() 237 cbor_permissions.try_push((key, val)).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value() 242 cbor_permissions.try_push((key, val)).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value()
|
D | lib.rs | 33 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError>; in try_push() method 44 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError> { in try_push() method
|
D | keyexchange.rs | 140 .try_push((arc::KE_NONCE, Value::Bytes(nonce_for_ke.0.clone().to_vec())))?; in create() 482 in_arc_content.protected_headers.try_push(auth_complete_hdr.clone())?; 483 out_arc_content.protected_headers.try_push(auth_complete_hdr)?; 573 shared_keys.try_push(key)?; in decipher_shared_keys_from_arcs() 598 arc_contents.try_push(arc_content)?; in decrypt_and_validate_shared_key_arcs()
|
D | key.rs | 503 array.try_push(Value::Integer(self.version.into())).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value() 505 .try_push(Value::Bytes(self.cert_chain.to_vec()?)) in to_cbor_value() 900 .try_push((k, v)) in from_cbor_value() 962 .try_push((k, v)) in from_cbor_value()
|
/system/keymint/common/src/ |
D | tag.rs | 177 dest.try_push(param.clone())?; in transcribe_tags() 347 chars.try_push(KeyParam::UsageCountLimit(*use_limit))? in extract_key_characteristics() 350 keystore_chars.try_push(KeyParam::UsageCountLimit(*use_limit))? in extract_key_characteristics() 356 chars.try_push(param.clone())?; in extract_key_characteristics() 358 keystore_chars.try_push(param.clone())?; in extract_key_characteristics() 369 result.try_push(KeyCharacteristics { security_level: sec_level, authorizations: chars })?; in extract_key_characteristics() 371 result.try_push(KeyCharacteristics { in extract_key_characteristics() 441 None => deduced_chars.try_push(KeyParam::KeySize(key_size))?, in check_rsa_import_params() 454 None => deduced_chars.try_push(KeyParam::RsaPublicExponent(public_exponent))?, in check_rsa_import_params() 598 None => deduced_chars.try_push(KeyParam::EcCurve(curve))?, in check_ec_import_params() [all …]
|
D | lib.rs | 154 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError>; in try_push() method 165 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError> { in try_push() method
|
/system/keymint/ta/src/ |
D | keys.rs | 482 certificate_chain.try_push(leaf_cert)?; in finish_keyblob_creation() 487 certificate_chain.try_push(cert)?; in finish_keyblob_creation() 655 imported_key_params.try_push(KeyParam::UserSecureId(password_sid as u64))?; in import_wrapped_key() 661 imported_key_params.try_push(KeyParam::UserSecureId(password_sid as u64))?; in import_wrapped_key() 667 imported_key_params.try_push(KeyParam::UserSecureId(biometric_sid as u64))?; in import_wrapped_key() 673 imported_key_params.try_push(KeyParam::CertificateNotBefore(UNDEFINED_NOT_BEFORE))?; in import_wrapped_key() 674 imported_key_params.try_push(KeyParam::CertificateNotAfter(UNDEFINED_NOT_AFTER))?; in import_wrapped_key()
|
D | cert.rs | 517 keygen_params.try_push(param).map_err(der_alloc_err)? in new_from_key_params() 519 _ => auths.try_push(param).map_err(der_alloc_err)?, in new_from_key_params() 679 $key_params.try_push(KeyParam::$variant(val.try_into().map_err( 688 $key_params.try_push(KeyParam::$variant(val.try_into().map_err( 696 $key_params.try_push(KeyParam::$variant($newtype(val.try_into().map_err( 704 $key_params.try_push(KeyParam::$variant).map_err(der_alloc_err)?; 712 .try_push(KeyParam::$variant(DateTime{ms_since_epoch: val})) 720 $key_params.try_push(KeyParam::$variant(try_to_vec(val.as_bytes()) 830 .try_push(KeyParam::RootOfTrust(try_to_vec(tlv_bytes).map_err(der_alloc_err)?)) in decode_value_from_bytes() 935 results.try_push(v.clone()).map_err(der_alloc_err)?;
|
D | operation.rs | 127 KeyParam::UserSecureId(sid) => secure_ids.try_push(*sid)?, in new() 261 ret_params.try_push(KeyParam::Nonce(try_to_vec(n)?))? in begin_operation() 264 ret_params.try_push(KeyParam::Nonce(try_to_vec(n)?))? in begin_operation() 271 ret_params.try_push(KeyParam::Nonce(try_to_vec(n)?))? in begin_operation() 318 ret_params.try_push(KeyParam::Nonce(try_to_vec(n)?))? in begin_operation()
|
D | rkp.rs | 253 pub_cose_keys.try_push(pub_cose_key_cbor)?; in generate_cert_req_v2()
|
D | lib.rs | 1154 kc.authorizations.try_push(KeyParam::Origin(origin))?; in add_keymint_tags() 1164 .try_push(KeyParam::BootPatchlevel(boot_info.boot_patchlevel))?; in add_keymint_tags()
|
/system/keymint/common/src/keyblob/ |
D | legacy.rs | 285 results.try_push(KeyParam::ApplicationId(try_to_vec(app_id)?))?; in hidden() 288 results.try_push(KeyParam::ApplicationData(try_to_vec(app_data)?))?; in hidden() 291 results.try_push(KeyParam::RootOfTrust(try_to_vec(rot)?))?; in hidden()
|
/system/keymint/common/src/tag/ |
D | legacy.rs | 214 | KeyParam::ResetSinceIdRotation => result.try_push(0x01u8)?, in serialize() 325 results.try_push(match tag { in deserialize()
|