Lines Matching refs:ApiName

23 use bssl_avf_error::{ApiName, Error, Result};
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()
132 check_int_result(ret, ApiName::EC_KEY_set_public_key_affine_coordinates)?; in from_cose_public_key()
144 check_int_result(ret, ApiName::EC_KEY_check_key) in check_key()
166 check_int_result(ret, ApiName::ECDSA_verify) in ecdsa_verify_der()
199 check_int_result(ret, ApiName::ECDSA_sign)?; in ecdsa_sign_der()
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()
236 check_int_result(ret, ApiName::EC_KEY_generate_key) in generate_key()
265 check_int_result(ret, ApiName::EC_POINT_get_affine_coordinates)?; in public_key_coordinates()
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()
337 check_int_result(ret, ApiName::EC_KEY_marshal_private_key)?; in ec_private_key()
340 check_int_result(unsafe { CBB_flush(cbb.as_mut()) }, ApiName::CBB_flush)?; in 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()
371 NonNull::new(signature).ok_or_else(|| to_call_failed_error(ApiName::ECDSA_SIG_new))?; in new()
388 ApiName::ECDSA_SIG_set0, in load_from_cose()
409 ApiName::BN_bn2bin_padded, in to_cose()
419 ApiName::BN_bn2bin_padded, in to_cose()
432 .ok_or_else(|| to_call_failed_error(ApiName::ECDSA_SIG_from_bytes))?; in new_from_der()
442 return Err(to_call_failed_error(ApiName::i2d_ECDSA_SIG)); in to_der()
451 return Err(to_call_failed_error(ApiName::i2d_ECDSA_SIG)); in to_der()
558 NonNull::new(bn).map(Self).ok_or_else(|| to_call_failed_error(ApiName::BN_bin2bn)) in from_slice()
564 NonNull::new(bn).map(Self).ok_or_else(|| to_call_failed_error(ApiName::BN_new)) in new()
573 check_int_result(ret, ApiName::BN_bn2bin_padded)?; in to_padded_vec()