Home
last modified time | relevance | path

Searched refs:key_file (Results 1 – 19 of 19) sorted by relevance

/external/autotest/client/site_tests/login_UserPolicyKeys/
Dlogin_UserPolicyKeys.py38 def _verify_key_file(self, key_file): argument
40 if not os.path.isfile(key_file):
41 raise error.TestFail('%s does not exist!' % key_file)
45 info = os.stat(key_file)
47 raise error.TestFail('%s is not a regular file' % key_file)
50 (key_file, oct(info.st_mode)))
52 current = key_file
97 key_file = ownership.get_user_policy_key_filename(ownership.TESTUSER)
98 if os.path.exists(key_file):
100 key_file)
[all …]
/external/autotest/site_utils/
Dhwid_lib.py26 def get_hwid_info(hwid, info_type, key_file): argument
41 if key_file == KEY_FILENAME_NO_HWID:
51 with open(key_file) as f:
78 def get_all_possible_dut_labels(key_file): argument
90 return get_hwid_info('dummy_hwid', HWID_INFO_LABEL, key_file).get(
Dhwid_lib_unittest.py159 key_file = hwid_lib.KEY_FILENAME_NO_HWID
160 self.assertEqual(hwid_lib.get_hwid_info(hwid, info_type, key_file), {})
/external/vboot_reference/host/lib/
Dsignature_digest.c41 uint8_t* SignatureBuf(const uint8_t* buf, uint64_t len, const char* key_file, in SignatureBuf() argument
49 key_fp = fopen(key_file, "r"); in SignatureBuf()
51 VBDEBUG(("SignatureBuf(): Couldn't open key file: %s\n", key_file)); in SignatureBuf()
59 key_file)); in SignatureBuf()
Dhost_signature.c249 const char* key_file, in CalculateSignature_external() argument
292 key_file, /* Key file to use */ in CalculateSignature_external()
/external/autotest/client/deps/fakegudev/src/
Dfakegudev.c181 GKeyFile *key_file; in load_fake_devices_from_file() local
187 key_file = g_key_file_new(); in load_fake_devices_from_file()
188 if (!g_key_file_load_from_file (key_file, in load_fake_devices_from_file()
194 groups = g_key_file_get_groups(key_file, &num_groups); in load_fake_devices_from_file()
206 if (!g_key_file_has_key (key_file, group, k_prop_device_file, &error)) { in load_fake_devices_from_file()
214 if (!g_key_file_has_key (key_file, group, k_prop_sysfs_path, &error)) { in load_fake_devices_from_file()
224 id = g_key_file_get_string (key_file, group, k_prop_device_file, &error); in load_fake_devices_from_file()
234 id = g_key_file_get_string (key_file, group, k_prop_sysfs_path, &error); in load_fake_devices_from_file()
250 keys = g_key_file_get_keys (key_file, group, &num_keys, &error); in load_fake_devices_from_file()
256 value = g_key_file_get_string (key_file, group, key, &error); in load_fake_devices_from_file()
[all …]
/external/boringssl/src/tool/
Dserver.cc164 std::string key_file = args_map["-key"]; in Server() local
165 if (!SSL_CTX_use_PrivateKey_file(ctx.get(), key_file.c_str(), SSL_FILETYPE_PEM)) { in Server()
166 fprintf(stderr, "Failed to load private key: %s\n", key_file.c_str()); in Server()
169 if (!SSL_CTX_use_certificate_chain_file(ctx.get(), key_file.c_str())) { in Server()
170 fprintf(stderr, "Failed to load cert chain: %s\n", key_file.c_str()); in Server()
/external/libbrillo/policy/tests/
Dlibpolicy_unittest.cc51 base::FilePath key_file(kKeyFile); in TEST() local
53 new MockDevicePolicyImpl(policy_file, key_file, false); in TEST()
173 base::FilePath key_file(kKeyFile); in TEST() local
175 new MockDevicePolicyImpl(policy_file, key_file, false); in TEST()
/external/v8/tools/release/
Dcheck_clusterfuzz.py198 assert options.key_file
199 with open(options.key_file) as f:
/external/autotest/server/hosts/
Dcros_label.py456 self.key_file = global_config.global_config.get_config_value(
464 self.key_file).get('labels', [])
489 self.key_file)
491 logging.error('Can not open key file: %s', self.key_file)
/external/libbrillo/policy/
Ddevice_policy_impl.cc27 bool ReadPublicKeyFromFile(const base::FilePath& key_file, in ReadPublicKeyFromFile() argument
29 if (!base::PathExists(key_file)) in ReadPublicKeyFromFile()
32 if (!base::ReadFileToString(key_file, public_key) || public_key->empty()) { in ReadPublicKeyFromFile()
/external/vboot_reference/host/lib/include/
Dsignature_digest.h34 uint8_t* SignatureBuf(const uint8_t* buf, uint64_t len, const char* key_file,
Dhost_signature.h59 const char* key_file,
/external/vboot_reference/scripts/image_signing/
Dsign_official_build.sh460 local key_size key_file="${key_dir}/update_key.pem"
470 key_size=$(openssl rsa -text -noout -in "${key_file}" | \
478 openssl rsautl -sign -pkcs -inkey "${key_file}" -out "${output}"
/external/boringssl/src/ssl/test/
Dtest_config.h30 std::string key_file; member
Dtest_config.cc135 { "-key-file", &TestConfig::key_file },
Dbssl_shim.cc488 if (!config->key_file.empty()) { in GetCertificate()
489 *out_pkey = LoadPrivateKey(config->key_file.c_str()); in GetCertificate()
/external/curl/lib/vtls/
Dnss.c551 char *key_file) in nss_load_key() argument
560 result = nss_create_object(ssl, CKO_PRIVATE_KEY, key_file, FALSE); in nss_load_key()
598 char *cert_file, char *key_file) in cert_stuff() argument
616 if(key_file || (is_file(cert_file))) { in cert_stuff()
617 if(key_file) in cert_stuff()
618 result = nss_load_key(conn, sockindex, key_file); in cert_stuff()
624 if(!display_error(conn, err, key_file)) { in cert_stuff()
Dopenssl.c339 char *key_file, in cert_stuff() argument
547 if(!key_file) in cert_stuff()
549 key_file=cert_file; in cert_stuff()
551 if(SSL_CTX_use_PrivateKey_file(ctx, key_file, file_type) != 1) { in cert_stuff()
553 key_file, key_type?key_type:"PEM"); in cert_stuff()
575 ENGINE_load_private_key(data->state.engine, key_file, in cert_stuff()