Home
last modified time | relevance | path

Searched refs:key_path (Results 1 – 25 of 32) sorted by relevance

12

/external/python/cryptography/tests/hazmat/primitives/
Dtest_serialization.py48 def test_load_der_rsa_private_key(self, key_path, password, backend): argument
50 os.path.join("asymmetric", *key_path),
75 def test_load_pem_rsa_private_key(self, key_path, password, backend): argument
77 os.path.join("asymmetric", *key_path),
98 def test_load_der_rsa_private_key(self, key_path, password, backend): argument
100 os.path.join("asymmetric", *key_path),
120 def test_load_der_dsa_private_key(self, key_path, password, backend): argument
122 os.path.join("asymmetric", *key_path),
139 def test_password_not_bytes(self, key_path, backend): argument
140 key_file = os.path.join("asymmetric", *key_path)
[all …]
Dtest_dh.py469 def test_private_bytes_match(self, key_path, loader_func, argument
473 key_path,
509 def test_private_bytes_values(self, key_path, loader_func, argument
513 key_path,
638 def test_public_bytes_match(self, key_path, loader_func, argument
642 key_path,
678 def test_public_bytes_values(self, key_path, loader_func, argument
682 key_path,
Dtest_dsa.py815 self, backend, key_path, encoding, loader_func argument
818 key_path, lambda pemfile: pemfile.read(), mode="rb"
915 def test_public_bytes_match(self, key_path, loader_func, encoding, argument
918 key_path, lambda pemfile: pemfile.read(), mode="rb"
Dtest_ec.py815 self, backend, key_path, encoding, loader_func argument
819 key_path, lambda pemfile: pemfile.read(), mode="rb"
948 def test_public_bytes_match(self, key_path, loader_func, encoding, argument
952 key_path, lambda pemfile: pemfile.read(), mode="rb"
/external/autotest/site_utils/stable_images/
Dbuild_data.py129 def _get_by_key_path(dictdict, key_path): argument
144 for key in key_path:
162 key_path = ['board-metadata', board, 'models']
163 model_versions = _get_by_key_path(metadata_json, key_path)
266 key_path = ['board-metadata', board, 'main-firmware-version']
267 return {board: _get_by_key_path(metadata_json, key_path)}
/external/autotest/client/cros/faft/utils/
Dkernel_handler.py113 key_path=None): argument
145 if key_path and self.os_if.is_dir(key_path):
146 resign_key_path = key_path
191 def resign_kernel(self, section, key_path=None): argument
194 KERNEL_RESIGN_MOD, key_path)
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_SetCertificate.c147 strdup_check(command->key_path, path, r, error_cleanup); in Fapi_SetCertificate_Async()
161 SAFE_FREE(command->key_path); in Fapi_SetCertificate_Async()
229 command->key_path, key_object); in Fapi_SetCertificate_Finish()
231 command->key_path); in Fapi_SetCertificate_Finish()
252 SAFE_FREE(command->key_path); in Fapi_SetCertificate_Finish()
/external/libwebsockets/test-apps/
Dtest-server.c343 char key_path[1024] = ""; in main() local
427 lws_strncpy(key_path, optarg, sizeof(key_path)); in main()
510 if (strlen(resource_path) > sizeof(key_path) - 32) { in main()
514 if (!key_path[0]) in main()
515 sprintf(key_path, "%s/libwebsockets-test-server.key.pem", in main()
519 info.ssl_private_key_filepath = key_path; in main()
Dtest-client.c586 char key_path[1024] = ""; in main() local
657 lws_strncpy(key_path, optarg, sizeof(key_path)); in main()
737 if (key_path[0]) in main()
738 info.client_ssl_private_key_filepath = key_path; in main()
/external/avb/test/
Davb_unittest_util.cc96 const base::FilePath& key_path, in GenerateVBMetaImage() argument
103 key_path.value() + " "; in GenerateVBMetaImage()
155 std::string BaseAvbToolTest::PublicKeyAVB(const base::FilePath& key_path) { in PublicKeyAVB() argument
160 key_path.value().c_str(), in PublicKeyAVB()
Davb_unittest_util.h80 const base::FilePath& key_path,
94 std::string PublicKeyAVB(const base::FilePath& key_path);
/external/autotest/client/cros/
Dhttpd.py249 def __init__(self, server_address, HandlerClass, cert_path, key_path): argument
255 keyfile=key_path)
282 key_path='/etc/mock_server.key', argument
290 key_path)
Dhttpd_unittest.py75 key_path=(creds_path+'.key'))
/external/scapy/scapy/layers/tls/
Dcert.py183 def __call__(cls, key_path=None): argument
185 if key_path is None:
195 if isinstance(key_path, tuple):
199 obj.import_from_tuple(key_path)
206 obj = _PKIObjMaker.__call__(cls, key_path, _MAX_KEY_SIZE)
343 def __call__(cls, key_path=None): argument
351 if key_path is None:
360 obj = _PKIObjMaker.__call__(cls, key_path, _MAX_KEY_SIZE)
/external/libwebsockets/lib/tls/
Dtls-network.c182 if (v->tls.alloc_cert_path && v->tls.key_path && in lws_tls_cert_updated()
184 !strcmp(v->tls.key_path, keypath)) { in lws_tls_cert_updated()
Dprivate-network.h57 char *key_path; member
/external/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/
Dlldbvscode_testcase.py129 def get_dict_value(self, d, key_path): argument
137 for key in key_path:
143 key, key_path, d))
/external/avb/
Davbtool.py349 def __init__(self, key_path): argument
368 args = ['openssl', 'rsa', '-in', key_path, '-modulus', '-noout']
393 self.key_path = key_path
468 self.key_path, signing_file.name])
477 [signing_helper, algorithm_name, self.key_path],
483 ['openssl', 'rsautl', '-sign', '-inkey', self.key_path, '-raw'],
2485 def verify_image(self, image_filename, key_path, expected_chain_partitions, argument
2521 if key_path:
2523 key_path))
2524 key_blob = RSAPublicKey(key_path).encode()
[all …]
Davbtool349 def __init__(self, key_path): argument
368 args = ['openssl', 'rsa', '-in', key_path, '-modulus', '-noout']
393 self.key_path = key_path
468 self.key_path, signing_file.name])
477 [signing_helper, algorithm_name, self.key_path],
483 ['openssl', 'rsautl', '-sign', '-inkey', self.key_path, '-raw'],
2485 def verify_image(self, image_filename, key_path, expected_chain_partitions, argument
2521 if key_path:
2523 key_path))
2524 key_blob = RSAPublicKey(key_path).encode()
[all …]
/external/autotest/client/common_lib/cros/
Darc.py55 key_path = os.path.join(_ADB_KEYS_PATH, 'test_key')
56 if not os.path.exists(key_path):
57 utils.system('adb keygen ' + pipes.quote(key_path))
58 os.environ[_ADB_VENDOR_KEYS] = key_path
/external/python/cryptography/tests/hazmat/backends/
Dtest_openssl.py591 def test_private_load_dhx_unsupported(self, key_path, loader_func, argument
594 key_path,
613 def test_public_load_dhx_unsupported(self, key_path, loader_func, argument
616 key_path,
/external/libwebsockets/lib/plat/freertos/
Dfreertos-file.c187 name = vhost->tls.key_path; in lws_plat_write_cert()
/external/tpm2-tss/src/tss2-fapi/
Dfapi_int.h300 const char *key_path; /**< The absolute key path */ member
622 char *key_path; member
Dfapi_util.c1521 context->loadKey.key_path = NULL; in ifapi_load_key_finish()
1523 r = ifapi_path_string_n(&context->loadKey.key_path, NULL, path_list, NULL, in ifapi_load_key_finish()
1531 goto_if_null2(context->loadKey.key_path, "Invalid path", r, in ifapi_load_key_finish()
1537 context->loadKey.key_path); in ifapi_load_key_finish()
1538 return_if_error2(r, "Could not open: %s", context->loadKey.key_path); in ifapi_load_key_finish()
1542 goto_if_null2(context->loadKey.key_path, "Invalid path", r, in ifapi_load_key_finish()
1558 context->loadKey.key_path); in ifapi_load_key_finish()
1563 SAFE_FREE(context->loadKey.key_path); in ifapi_load_key_finish()
1704 SAFE_FREE(context->loadKey.key_path); in ifapi_load_key_finish()
/external/libwebsockets/lib/core-net/
Dvhost.c582 vh->tls.key_path = vh->tls.alloc_cert_path = in lws_create_vhost()
588 vh->tls.key_path += n; in lws_create_vhost()
591 memcpy(vh->tls.key_path, info->ssl_private_key_filepath, in lws_create_vhost()

12