Home
last modified time | relevance | path

Searched refs:to_call_failed_error (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Virtualization/libs/bssl/src/
Dec_key.rs20 use crate::util::{check_int_result, to_call_failed_error};
71 .ok_or_else(|| to_call_failed_error(ApiName::EC_KEY_new_by_curve_name)) in new_p256()
82 .ok_or_else(|| to_call_failed_error(ApiName::EC_KEY_new_by_curve_name)) in new_p384()
201 Err(to_call_failed_error(ApiName::ECDSA_sign)) in ecdsa_sign_der()
223 Err(to_call_failed_error(ApiName::ECDSA_size)) in ecdsa_size()
278 Err(to_call_failed_error(ApiName::EC_KEY_get0_public_key)) in public_key_ec_point()
292 Err(to_call_failed_error(ApiName::EC_KEY_get0_group)) in ec_group()
310 return Err(to_call_failed_error(ApiName::EC_GROUP_new_by_curve_name)); in from_ec_private_key()
319 .ok_or_else(|| to_call_failed_error(ApiName::EC_KEY_parse_private_key))?; in from_ec_private_key()
344 Ok(buf.get(0..len).ok_or_else(|| to_call_failed_error(ApiName::CBB_len))?.to_vec().into()) in ec_private_key()
[all …]
Daead.rs17 use crate::util::{check_int_result, to_call_failed_error};
102 NonNull::new(ctx).ok_or_else(|| to_call_failed_error(ApiName::EVP_AEAD_CTX_new))?; in new()
136 out.get(0..out_len).ok_or_else(|| to_call_failed_error(ApiName::EVP_AEAD_CTX_seal)) in seal()
170 out.get(0..out_len).ok_or_else(|| to_call_failed_error(ApiName::EVP_AEAD_CTX_open)) in open()
Ddigest.rs17 use crate::util::{check_int_result, to_call_failed_error};
98 return Err(to_call_failed_error(ApiName::EVP_Digest)); in digest()
124 NonNull::new(ctx).map(Self).ok_or_else(|| to_call_failed_error(ApiName::EVP_MD_CTX_new)) in new()
Devp.rs20 use crate::util::{check_int_result, to_call_failed_error};
57 NonNull::new(key).ok_or_else(|| to_call_failed_error(ApiName::EVP_PKEY_new)) in new_pkey()
97 Ok(buf.get(0..len).ok_or_else(|| to_call_failed_error(ApiName::CBB_len))?.to_vec()) in subject_public_key_info()
122 .ok_or_else(|| to_call_failed_error(ApiName::EVP_PKEY_new_raw_public_key))?; in new_raw_public_key()
Dsha.rs17 use crate::util::to_call_failed_error;
31 Err(to_call_failed_error(ApiName::SHA256))
Dhmac.rs19 use crate::util::to_call_failed_error;
56 Err(to_call_failed_error(ApiName::HMAC))
Dutil.rs35 pub(crate) fn to_call_failed_error(api_name: ApiName) -> Error { in to_call_failed_error() function