Home
last modified time | relevance | path

Searched refs:UnknownError (Results 1 – 18 of 18) sorted by relevance

/system/keymint/boringssl/src/
Derr.rs22 | ffi::ERR_R_OVERFLOW => return ErrorCode::UnknownError, in map_openssl_err()
27 ffi::ERR_LIB_USER => ErrorCode::try_from(reason).unwrap_or(ErrorCode::UnknownError), in map_openssl_err()
36 ErrorCode::UnknownError in map_openssl_err()
55 _ => ErrorCode::UnknownError, in translate_evp_error()
62 _ => ErrorCode::UnknownError, in translate_asn1_error()
78 _ => ErrorCode::UnknownError, in translate_cipher_error()
93 _ => ErrorCode::UnknownError, in translate_pkcs8_error()
100 _ => ErrorCode::UnknownError, in translate_x509v3_error()
112 _ => ErrorCode::UnknownError, in translate_rsa_error()
Dec.rs79 km_err!(UnknownError, "generated Ed25519 key of unexpected size: {:?}", e) in generate_ed25519_key()
93 km_err!(UnknownError, "generated X25519 key of unexpected size: {:?}", e) in generate_x25519_key()
165 Key::X25519(_) => Err(km_err!(UnknownError, "X25519 key not valid for signing")), in begin_sign()
219 UnknownError, in finish()
238 Key::X25519(_) => Err(km_err!(UnknownError, "X25519 not supported in cargo")), in finish()
239 Key::Ed25519(_) => Err(km_err!(UnknownError, "Ed25519 key not valid for agreement")), in finish()
292 return Err(km_err!(UnknownError, "no PCTX!")); in new()
423 return Err(km_err!(UnknownError, "no NIST group for curve25519 key")) in nist_key_to_group()
Dlib.rs40 return ErrorCode::UnknownError; in map_openssl_errstack()
49 ErrorCode::UnknownError in map_openssl_err()
Drsa.rs142 km_err!(UnknownError, "Digest::None not allowed for RSA-OAEP msg digest") in finish()
145 km_err!(UnknownError, "Digest::None not allowed for RSA-OAEP MGF1 digest") in finish()
220 return Err(km_err!(UnknownError, "no PCTX!")); in new()
Daes_cmac.rs98 return Err(km_err!(UnknownError, "Unexpected CMAC output size of {}", output_len)); in finish()
Daes.rs264 UnknownError, in finish()
/system/keymint/ta/src/
Drkp.rs56 .ok_or_else(|| km_err!(UnknownError, "attestation ID info not available"))?; in rpc_device_info_cbor()
60 .ok_or_else(|| km_err!(UnknownError, "boot info not available"))?; in rpc_device_info_cbor()
64 .ok_or_else(|| km_err!(UnknownError, "HAL info not available"))?; in rpc_device_info_cbor()
83 l => return Err(km_err!(UnknownError, "security level {:?} not supported", l)), in rpc_device_info_cbor()
Dlib.rs458 .map_err(|_e| km_err!(UnknownError, "wrong size output from HMAC-SHA256"))?, in key_id()
529 km_err!(UnknownError, "failed to encode root-of-trust: {:?}", e) in set_boot_info()
608 (None, error_rsp(ErrorCode::UnknownError as i32)) in process()
1018 .map_err(|_e| km_err!(UnknownError, "Failed to CBOR-encode RootOfTrust"))?; in get_root_of_trust()
1028 .map_err(|_e| km_err!(UnknownError, "Failed to CBOR-encode RootOfTrust")) in get_root_of_trust()
1151 UnknownError, in add_keymint_tags()
1190 ErrorCode::UnknownError in op_error_rsp()
Dcert.rs78 return Err(km_err!(UnknownError, "unexpected cert signing key type")); in tbs_certificate()
90 UnknownError, in tbs_certificate()
148 .map_err(|e| km_err!(UnknownError, "failed to parse certificate: {:?}", e))?; in extract_subject()
153 .map_err(|e| km_err!(UnknownError, "failed to DER-encode subject: {:?}", e))?; in extract_subject()
289 UnknownError, in attestation_extension()
310 .map_err(|_| km_err!(UnknownError, "invalid security level {:?}", security_level))?; in attestation_extension()
Dkeys.rs101 chain.get(0).ok_or_else(|| km_err!(UnknownError, "empty attestation chain"))?, in get_signing_info()
204 _ => Err(km_err!(UnknownError, "unexpected cert signing key type")), in sign_cert_data()
661 .ok_or_else(|| km_err!(UnknownError, "no legacy key handler"))?; in upgrade_key()
Dtests.rs18 let rsp = error_rsp(ErrorCode::UnknownError as i32); in test_invalid_data()
Doperation.rs751 km_err!(UnknownError, "failed to perform HMAC on confirmation token: {:?}", e) in verify_confirmation_token()
853 UnknownError, in check_subsequent_auth()
/system/keymint/common/src/keyblob/
Dsdd_mem.rs43 None => Err(km_err!(UnknownError, "no factory secret available!")), in get_factory_reset_secret()
Dlegacy.rs88 km_err!(UnknownError, "keyblob of format {:?} missing kdf_version", self.format) in serialize()
91 km_err!(UnknownError, "keyblob of format {:?} missing addl_info", self.format) in serialize()
/system/keymint/hal/src/
Dlib.rs40 ErrorCode::UnknownError as i32, in failed_cbor()
157 ErrorCode::UnknownError as i32, in channel_execute()
/system/keymint/common/src/
Dcrypto.rs129 Err($crate::km_err!(UnknownError, "Expected explicit key but found opaque key!"))
473 return Err(km_err!(UnknownError, "overflow in hkdf")); in expand()
532 UnknownError, in ckdf()
/system/keymint/common/src/crypto/
Dec.rs308 UnknownError, in coordinates_from_pub_key()
316 UnknownError, in coordinates_from_pub_key()
/system/keymint/wire/src/
Dkeymint.rs255 UnknownError = -1000, enumerator