Home
last modified time | relevance | path

Searched refs:ec (Results 1 – 25 of 181) sorted by relevance

12345678

/system/apex/apexd/
Dapexd_utils.h50 std::error_code ec; in WalkDir() local
51 auto it = fs::directory_iterator(path, ec); in WalkDir()
53 while (!ec && it != end) { in WalkDir()
55 it.increment(ec); in WalkDir()
57 if (ec) { in WalkDir()
59 << "Can't open " << path << " for reading : " << ec.message(); in WalkDir()
121 std::error_code ec; in DeleteDirContent() local
122 std::filesystem::remove_all(file, ec); in DeleteDirContent()
123 if (ec) { in DeleteDirContent()
125 << "Failed to delete path " << file << " : " << ec.message(); in DeleteDirContent()
[all …]
Dapex_shim.cpp120 std::error_code ec; in ValidateShimApex() local
126 auto iter = fs::recursive_directory_iterator(mount_point, ec); in ValidateShimApex()
135 fs::file_status status = iter->status(ec); in ValidateShimApex()
156 iter = iter.increment(ec); in ValidateShimApex()
157 if (ec) { in ValidateShimApex()
159 << ec.message(); in ValidateShimApex()
/system/keymint/boringssl/src/
Dec.rs27 crypto::{ec, ec::Key, AccumulatingOperation, CurveType, OpaqueOr},
39 group: &openssl::ec::EcGroupRef, in private_key_from_der_for_group()
40 ) -> Result<openssl::ec::EcKey<openssl::pkey::Private>, openssl::error::ErrorStack> { in private_key_from_der_for_group()
42 openssl::ec::EcKey::private_key_from_der_for_group(der, group) in private_key_from_der_for_group()
48 _group: &openssl::ec::EcGroupRef, in private_key_from_der_for_group()
49 ) -> Result<openssl::ec::EcKey<openssl::pkey::Private>, openssl::error::ErrorStack> { in private_key_from_der_for_group()
51 openssl::ec::EcKey::private_key_from_der(der) in private_key_from_der_for_group()
71 curve: ec::NistCurve, in generate_nist_key()
74 let ec_key = ossl!(openssl::ec::EcKey::<openssl::pkey::Private>::generate( in generate_nist_key()
77 let nist_key = ec::NistKey(ossl!(ec_key.private_key_to_der())?); in generate_nist_key()
[all …]
/system/security/ondevice-signing/
DVerityUtils.cpp181 std::error_code ec; in addFilesToVerityRecursive() local
182 auto it = std::filesystem::recursive_directory_iterator(path, ec); in addFilesToVerityRecursive()
183 for (auto end = std::filesystem::recursive_directory_iterator(); it != end; it.increment(ec)) { in addFilesToVerityRecursive()
200 if (ec) { in addFilesToVerityRecursive()
201 return Error() << "Failed to iterate " << path << ": " << ec.message(); in addFilesToVerityRecursive()
209 std::error_code ec; in verifyAllFilesInVerity() local
211 auto it = std::filesystem::recursive_directory_iterator(path, ec); in verifyAllFilesInVerity()
214 while (!ec && it != end) { in verifyAllFilesInVerity()
228 if (ec) { in verifyAllFilesInVerity()
229 return Error() << "Failed to iterate " << path << ": " << ec; in verifyAllFilesInVerity()
[all …]
Dodsign_main.cpp90 std::error_code ec; in rename() local
91 std::filesystem::rename(from, to, ec); in rename()
92 if (ec) { in rename()
93 LOG(ERROR) << "Can't rename " << from << " to " << to << ": " << ec.message(); in rename()
100 std::error_code ec; in removeDirectory() local
101 auto num_removed = std::filesystem::remove_all(directory, ec); in removeDirectory()
102 if (ec) { in removeDirectory()
103 LOG(ERROR) << "Can't remove " << directory << ": " << ec.message(); in removeDirectory()
114 std::error_code ec; in directoryHasContent() local
115 return std::filesystem::is_directory(directory, ec) && in directoryHasContent()
[all …]
/system/apex/tests/native/
Dapex_shared_libraries_test.cpp115 std::error_code ec; in TEST() local
116 if (!fs::is_symlink(p, ec)) { in TEST()
122 auto target = fs::read_symlink(p.path(), ec); in TEST()
123 if (ec || !StartsWith(target.string(), kApexSharedLibsRoot)) { in TEST()
130 auto dest = fs::canonical(p.path(), ec); in TEST()
131 EXPECT_FALSE(ec) << "Failed to resolve " << p.path() << " (symlink to " in TEST()
132 << target << "): " << ec; in TEST()
133 if (ec) { in TEST()
/system/keymint/tests/src/bin/
Dauth-keyblob-parse.rs118 ec::Key::P224(ec::NistKey(raw_key)).into(), in process()
123 ec::Key::P256(ec::NistKey(raw_key)).into(), in process()
128 ec::Key::P384(ec::NistKey(raw_key)).into(), in process()
133 ec::Key::P521(ec::NistKey(raw_key)).into(), in process()
136 ec::import_pkcs8_key(&raw_key).expect("curve25519 key in PKCS#8 format") in process()
/system/keymint/common/src/crypto/
Dtraits.rs17 use crate::{crypto::ec::Key, der_err, explicit, keyblob, vec_try, Error};
48 pub ec: Box<dyn Ec>, field
303 curve: ec::NistCurve, in generate_nist_key()
330 ec::import_pkcs8_key(data) in import_pkcs8_key()
340 ec::import_raw_ed25519_key(data) in import_raw_ed25519_key()
350 ec::import_raw_x25519_key(data) in import_raw_x25519_key()
359 fn subject_public_key(&self, key: &OpaqueOr<ec::Key>) -> Result<Vec<u8>, Error> { in subject_public_key()
373 let nist_curve: ec::NistCurve = ec_key.curve().try_into()?; in subject_public_key()
385 fn nist_public_key(&self, key: &ec::NistKey, curve: ec::NistCurve) -> Result<Vec<u8>, Error>; in nist_public_key()
388 fn ed25519_public_key(&self, key: &ec::Ed25519Key) -> Result<Vec<u8>, Error>; in ed25519_public_key()
[all …]
/system/security/keystore2/src/
Derror.rs214 Error::Km(ec) => SerializedError(ec.0), in error_to_serialized_error()
253 fn nested_nested_ec(ec: ErrorCode) -> anyhow::Result<()> { in nested_nested_ec()
254 Err(anyhow!(Error::Km(ec))).context("nested nested ec") in nested_nested_ec()
257 fn nested_ec(ec: ErrorCode) -> anyhow::Result<()> { in nested_ec()
258 nested_nested_ec(ec).context("nested ec") in nested_ec()
319 for ec in ErrorCode::UNKNOWN_ERROR.0..ErrorCode::ROOT_OF_TRUST_ALREADY_SET.0 { in keystore_error_test()
321 Result::<(), i32>::Err(ec), in keystore_error_test()
322 nested_ec(ErrorCode(ec)) in keystore_error_test()
330 for ec in ErrorCode::UNKNOWN_ERROR.0..ErrorCode::ROOT_OF_TRUST_ALREADY_SET.0 { in keystore_error_test()
332 Result::<(), i32>::Err(ec), in keystore_error_test()
[all …]
/system/authgraph/boringssl/src/
Dlib.rs50 pub mod ec; module
51 pub use ec::BoringEcDh;
52 pub use ec::BoringEcDsa;
Dec.rs57 ossl!(openssl::ec::EcGroup::from_curve_name(openssl::nid::Nid::X9_62_PRIME256V1))?; in compute_shared_secret()
59 let ec_key = ossl!(openssl::ec::EcKey::private_key_from_der_for_group(&own_key.0, &group))?; in compute_shared_secret()
97 let group = ossl!(openssl::ec::EcGroup::from_curve_name( in sign()
102 ossl!(openssl::ec::EcKey::private_key_from_der_for_group(key, &group))?; in sign()
108 ossl!(openssl::ec::EcGroup::from_curve_name(openssl::nid::Nid::SECP384R1))?; in sign()
112 ossl!(openssl::ec::EcKey::private_key_from_der_for_group(key, &group))?; in sign()
197 let group = ossl!(openssl::ec::EcGroup::from_curve_name(openssl::nid::Nid::X9_62_PRIME256V1))?; in create_p256_key_pair()
205 let group = ossl!(openssl::ec::EcGroup::from_curve_name(openssl::nid::Nid::SECP384R1))?; in create_p384_key_pair()
212 group: openssl::ec::EcGroup, in create_nist_key_pair()
215 let ec_priv_key = ossl!(openssl::ec::EcKey::<openssl::pkey::Private>::generate(&group))?; in create_nist_key_pair()
[all …]
/system/core/init/
Dfirst_stage_init.cpp140 std::error_code ec; in PrepareSwitchRoot() local
142 if (!fs::create_directories(dst_dir, ec)) { in PrepareSwitchRoot()
143 LOG(FATAL) << "Cannot create " << dst_dir << ": " << ec.message(); in PrepareSwitchRoot()
464 std::error_code ec; in FirstStageMain() local
465 if (!fs::create_directories(dir, ec) && !!ec) { in FirstStageMain()
466 LOG(FATAL) << "Can't mkdir " << dir << ": " << ec.message(); in FirstStageMain()
468 if (!fs::copy_file(kBootImageRamdiskProp, dest, ec)) { in FirstStageMain()
470 << ec.message(); in FirstStageMain()
480 std::error_code ec; // to invoke the overloaded copy_file() that won't throw. in FirstStageMain() local
482 !fs::copy_file(adb_debug_prop_src, kDebugRamdiskProp, ec)) { in FirstStageMain()
[all …]
/system/keymint/common/src/
Dcrypto.rs38 pub mod ec; module
79 NistEc(ec::NistCurve),
132 opaque_from_key!(ec::Key);
153 Ec(EcCurve, CurveType, OpaqueOr<ec::Key>),
199 ec: &dyn Ec, in subject_public_key_info()
205 Some(key.subject_public_key_info(buf, ec, curve, curve_type)?) in subject_public_key_info()
302 (EcCurve::P224, CurveType::Nist) => ec::Key::P224(ec::NistKey(raw_key)), in from_cbor_value()
303 (EcCurve::P256, CurveType::Nist) => ec::Key::P256(ec::NistKey(raw_key)), in from_cbor_value()
304 (EcCurve::P384, CurveType::Nist) => ec::Key::P384(ec::NistKey(raw_key)), in from_cbor_value()
305 (EcCurve::P521, CurveType::Nist) => ec::Key::P521(ec::NistKey(raw_key)), in from_cbor_value()
[all …]
/system/extras/simpleperf/testdata/etm/
Dperf_inject.data11 10e0-10ec:1
22 10ec->0:1
/system/unwinding/libunwindstack/offline_files/apk_soname_at_end_arm64/
Dregs.txt11 x10: 10ec
12 x11: 10ec
/system/ca-certificates/files/
D252252d2.032 ed:c2:3b:f8:ec:fa:7b:6b:58:20:ec:99:ae:c9:fc:
33 68:b3:75:b9:db:09:ec:c8:13:f5:4e:c6:0a:1d:66:
45 30:65:02:31:00:89:6a:8d:47:e7:ec:fc:6e:55:03:d9:67:6c:
D85cde254.041 9c:b4:49:77:32:29:56:fd:b9:ec:8c:dd:22:fa:72:
42 dc:27:61:97:ee:f6:5a:84:ec:6e:19:b9:89:2c:dc:
46 b4:f4:a4:b0:f3:64:37:79:92:c0:ec:46:5e:7f:e1:
54 26:d4:08:04:59:d0:98:0e:0e:e6:de:fc:c3:ec:1f:
68 01:ec:b8:8a:67:7b:31:e2:67:2e:8c:95:03:26:2e:43:9d:4a:
73 38:d3:32:3e:38:81:75:96:73:fa:68:8f:b1:cb:ce:1f:c5:ec:
D52b525c7.050 4f:ad:47:87:6c:ec:5b:49:c1:4a:d5:bb:8f:ec:87:
51 ac:7f:82:9a:86:ec:3d:03:99:52:01:d2:35:9e:ac:
72 54:a2:b5:98:23:ec:08:77:1c:95:5d:61:d1:cb:89:
98 c3:1b:8f:fe:ec:3e:d3:ca:94:bf:76:0a:25:0d:a9:7b:02:1c:
104 6c:2f:6f:65:f9:db:3d:ec:21:ec:5e:f4:f4:8b:ca:60:65:54:
112 a3:63:66:02:80:bd:05:3a:3b:47:9c:ec:00:26:4c:f5:88:51:
114 9f:de:b3:af:67:03:b3:1f:dd:6d:5d:69:68:69:ab:5e:3a:ec:
D128f4b91.058 ec:19:8e:b0:c7:f2:74:5b:6b:44:c6:7d:96:b9:98:
77 e7:bd:ec:c1:73:a7:94:5a:cb:92:64:82:a6:00:c1:
78 70:a1:6e:2c:29:e1:58:57:ec:5a:7c:99:6b:25:a4:
93 16:e0:09:92:e0:18:c7:78:98:bb:f3:ec:42:52:fb:a9:a4:82:
95 b0:2b:02:33:36:c0:10:90:6f:1d:9c:af:e1:69:93:ec:a3:45:
101 9a:26:ec:b0:c5:f5:bb:d1:7a:74:c2:6c:cd:c5:b5:5e:f6:4c:
112 32:ec:d9:a3:d6:6f:94:23:ff:3b:b7:29:65:e6:07:e9:ef:b6:
115 b1:25:39:db:3c:ff:e5:3e:a6:0e:e5:6b:9e:ff:db:ec:2f:74:
Dda7377f6.048 7a:73:b1:91:a0:75:3e:a8:fa:e3:38:00:7a:ec:89:
58 f3:09:1e:ec:58:32:33:11:f3:77:64:b0:76:1f:e4:
68 5e:ec:16:c2:f3:2a:e6:62:da:2a:db:59:62:10:25:
97 5a:f6:71:78:f4:94:7d:91:0b:8e:ec:90:54:8e:bc:6f:a1:4c:
109 f6:ec:79:ad:2b:58:19:a2:ad:2c:22:1a:95:8e:be:96:90:5d:
113 8d:ec:49:eb:75:50:d5:8c:28:59:ca:74:34:da:8c:0b:21:ab:
117 e5:cc:c6:31:ec:37:ec:63:59:9b:0b:1d:76:cc:7e:32:9a:88:
De13665f9.052 7e:06:d4:ec:34:d9:86:bc:75:5b:87:88:f0:d2:d9:
54 a0:ec:34:e5:30:c4:35:7d:fb:26:4d:1b:6e:30:54:
57 57:0a:48:50:fa:7a:43:da:7e:ec:5b:9a:0e:62:76:
58 fe:ea:9d:1d:85:72:ec:11:bb:35:e8:1f:27:bf:c1:
67 07:db:60:62:fe:ec:10:6e:da:68:01:f4:83:1b:a9:
79 4b:3e:e8:7f:3c:01:ec:8f:5e:cd:7f:d2:28:42:01:
80 95:8a:e2:97:3d:10:21:7d:f6:9d:1c:c5:34:a1:ec:
102 12:e4:c6:7d:bb:c4:ec:f8:b5:1c:4e:3e:67:bf:c5:5f:1b:6d:
Dab59055e.053 b1:f2:41:02:2b:ad:a9:3a:a3:ec:79:0a:ec:5f:3a:
56 ec:ae:c1:f0:27:9b:ae:e3:f4:ec:ef:ae:7f:f7:86:
73 82:ec:9d:11:df:c2:02:fb:1a:3b:d1:ed:20:9a:ef:
95 b3:91:3f:5f:36:ac:8b:ec:57:a8:3e:e7:81:8a:18:57:39:85:
110 4b:ec:40:90:f2:cd:6e:57:d2:62:0e:7c:57:93:b1:a7:6d:cd:
117 dd:8a:66:07:16:78:15:57:71:1b:ec:f5:47:84:f3:9e:31:37:
D35105088.052 2d:64:09:dc:ce:89:9f:cc:3d:a9:ec:f6:cf:c1:dc:
55 2b:91:f8:e2:6f:d0:ec:16:20:90:09:3e:e2:e8:74:
77 7d:1c:4d:17:bc:c9:ec:43:26:d0:bf:41:5f:40:a9:
102 64:90:12:0f:73:28:2e:c5:e2:24:4e:fc:58:ec:f0:f4:45:fe:
107 43:6b:ff:e5:de:4d:66:11:51:cf:99:ae:ec:17:b6:e8:71:91:
109 a3:67:25:21:5d:e6:dd:1d:0b:2e:68:1b:3b:82:af:ec:83:67:
112 e0:25:25:01:b4:dd:1a:07:9c:77:00:3f:d0:dc:d5:ec:3d:d4:
D99e1b953.057 62:1d:63:75:f7:6b:e7:cb:5b:9a:70:ec:3e:67:05:
93 da:ec:1c:37:52:e0:42:4b:fb:6c:76:ca:24:0b:39:12:15:9d:
96 d8:ec:82:ff:eb:0e:c4:bf:64:2d:7d:63:6e:17:78:ec:5d:7c:
98 ec:ec:6f:76:ae:91:db:10:8e:04:dc:92:df:a0:f6:e6:ae:49:
107 d3:3f:49:e2:77:eb:23:c8:88:66:3b:3d:39:76:21:46:f1:ec:
/system/libartpalette/
Dpalette_android.cc229 std::error_code ec; in PaletteCreateOdrefreshStagingDirectory() local
230 if (std::filesystem::exists(kStagingDirectory, ec)) { in PaletteCreateOdrefreshStagingDirectory()
231 if (!std::filesystem::remove_all(kStagingDirectory, ec)) { in PaletteCreateOdrefreshStagingDirectory()
232 LOG(ERROR) << ec.message() in PaletteCreateOdrefreshStagingDirectory()
234 DCHECK_EQ(ec.value(), errno); in PaletteCreateOdrefreshStagingDirectory()

12345678