Home
last modified time | relevance | path

Searched refs:private_key (Results 1 – 25 of 38) sorted by relevance

12

/external/vboot_reference/tests/
Dvboot_common2_tests.c44 const VbPrivateKey *private_key) in VerifyDataTest() argument
51 sig = CalculateSignature(test_data, test_size, private_key); in VerifyDataTest()
80 const VbPrivateKey *private_key) in VerifyDigestTest() argument
87 sig = CalculateSignature(test_data, sizeof(test_data), private_key); in VerifyDigestTest()
119 const VbPrivateKey *private_key) in VerifyKernelPreambleTest() argument
131 0, 0, 0, 0, private_key); in VerifyKernelPreambleTest()
150 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest()
156 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest()
162 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest()
168 ReSignKernelPreamble(h, private_key); in VerifyKernelPreambleTest()
[all …]
Dvb20_common3_tests.c33 const VbPrivateKey *private_key, in test_verify_keyblock() argument
52 KeyBlockCreate(data_key, private_key, 0x1234); in test_verify_keyblock()
80 resign_keyblock(h, private_key); in test_verify_keyblock()
87 resign_keyblock(h, private_key); in test_verify_keyblock()
94 resign_keyblock(h, private_key); in test_verify_keyblock()
100 resign_keyblock(h, private_key); in test_verify_keyblock()
107 resign_keyblock(h, private_key); in test_verify_keyblock()
114 resign_keyblock(h, private_key); in test_verify_keyblock()
136 resign_keyblock(h, private_key); in test_verify_keyblock()
143 resign_keyblock(h, private_key); in test_verify_keyblock()
[all …]
Dvboot_common3_tests.c31 const VbPrivateKey *private_key, in KeyBlockVerifyTest() argument
38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest()
167 const VbPrivateKey *private_key, in VerifyFirmwarePreambleTest() argument
180 private_key, 0x5678); in VerifyFirmwarePreambleTest()
199 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest()
205 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest()
211 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest()
217 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest()
224 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest()
230 ReSignFirmwarePreamble(h, private_key); in VerifyFirmwarePreambleTest()
[all …]
Dvb20_common2_tests.c143 VbPrivateKey *private_key = NULL; in test_algorithm() local
150 private_key = PrivateKeyReadPem(filename, key_algorithm); in test_algorithm()
151 if (!private_key) { in test_algorithm()
166 CalculateSignature(test_data, sizeof(test_data), private_key); in test_algorithm()
175 free(private_key); in test_algorithm()
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c90 EVP_PKEY *private_key; /* the private key if using engine */ member
909 conn->private_key = EVP_PKEY_from_keystore(key_id); in tls_engine_init()
910 if (!conn->private_key) { in tls_engine_init()
962 conn->private_key = ENGINE_load_private_key(conn->engine, in tls_engine_init()
965 if (!conn->private_key) { in tls_engine_init()
1002 if (conn->private_key) { in tls_engine_init()
1003 EVP_PKEY_free(conn->private_key); in tls_engine_init()
1004 conn->private_key = NULL; in tls_engine_init()
1018 if (conn->private_key) { in tls_engine_deinit()
1019 EVP_PKEY_free(conn->private_key); in tls_engine_deinit()
[all …]
Dtls_gnutls.c459 if (params->client_cert && params->private_key) { in tls_connection_set_params()
462 conn->xcred, params->client_cert, params->private_key, in tls_connection_set_params()
467 conn->xcred, params->client_cert, params->private_key, in tls_connection_set_params()
476 params->private_key, GNUTLS_X509_FMT_PEM, in tls_connection_set_params()
481 params->private_key, GNUTLS_X509_FMT_PEM); in tls_connection_set_params()
490 } else if (params->private_key) { in tls_connection_set_params()
495 conn->xcred, params->private_key, GNUTLS_X509_FMT_DER, in tls_connection_set_params()
653 if (params->client_cert && params->private_key) { in tls_global_set_params()
657 params->private_key, GNUTLS_X509_FMT_DER); in tls_global_set_params()
663 params->private_key, GNUTLS_X509_FMT_PEM); in tls_global_set_params()
[all …]
Dtls_internal.c241 if (tlsv1_set_private_key(cred, params->private_key, in tls_connection_set_params()
301 if (tlsv1_set_private_key(cred, params->private_key, in tls_global_set_params()
Dtls.h161 const char *private_key; member
/external/boringssl/src/ssl/
Ds3_lib.c321 int SSL_CTX_set1_tls_channel_id(SSL_CTX *ctx, EVP_PKEY *private_key) { in SSL_CTX_set1_tls_channel_id() argument
323 if (EVP_PKEY_id(private_key) != EVP_PKEY_EC || in SSL_CTX_set1_tls_channel_id()
324 EVP_PKEY_bits(private_key) != 256) { in SSL_CTX_set1_tls_channel_id()
330 ctx->tlsext_channel_id_private = EVP_PKEY_up_ref(private_key); in SSL_CTX_set1_tls_channel_id()
334 int SSL_set1_tls_channel_id(SSL *ssl, EVP_PKEY *private_key) { in SSL_set1_tls_channel_id() argument
336 if (EVP_PKEY_id(private_key) != EVP_PKEY_EC || in SSL_set1_tls_channel_id()
337 EVP_PKEY_bits(private_key) != 256) { in SSL_set1_tls_channel_id()
342 ssl->tlsext_channel_id_private = EVP_PKEY_up_ref(private_key); in SSL_set1_tls_channel_id()
/external/v8/tools/testrunner/server/
Dsignatures.py40 private_key = "~/.ssh/v8_dtest"
42 (signature_file, private_key, filename),
/external/wpa_supplicant_8/wpa_supplicant/
Dwpa_supplicant.conf1191 private_key="/etc/cert/user.prv"
1305 private_key="/etc/cert/user.prv"
1440 private_key="/etc/cert/user.prv"
Dinterworking.c693 (cred->private_key == NULL || in nai_realm_find_eap()
694 cred->private_key[0] == '\0'))) { in nai_realm_find_eap()
699 cred->private_key ? cred->private_key : "NULL"); in nai_realm_find_eap()
708 if (cred->private_key && cred->private_key[0] && in nai_realm_find_eap()
1460 if (cred->private_key && in interworking_set_eap_params()
1461 os_strncmp(cred->private_key, "keystore://", 11) == 0) { in interworking_set_eap_params()
1465 cred->private_key + 11) < 0 || in interworking_set_eap_params()
1470 if (cred->private_key && cred->private_key[0] && in interworking_set_eap_params()
1471 wpa_config_set_quoted(ssid, "private_key", cred->private_key) < 0) in interworking_set_eap_params()
Dconfig.h149 char *private_key; member
/external/wpa_supplicant_8/src/ap/
Dauthsrv.c153 hapd->conf->private_key || hapd->conf->dh_file)) { in authsrv_init()
166 params.private_key = hapd->conf->private_key; in authsrv_init()
/external/wpa_supplicant_8/src/tls/
Dtlsv1_cred.c318 const char *private_key, in tlsv1_set_private_key() argument
331 if (private_key) { in tlsv1_set_private_key()
336 buf = (u8 *) os_readfile(private_key, &len); in tlsv1_set_private_key()
339 private_key); in tlsv1_set_private_key()
Drsa.c18 int private_key; /* whether private key is set */ member
160 key->private_key = 1; in crypto_rsa_import_private_key()
272 if (use_private && !key->private_key) in crypto_rsa_exptmod()
Dtlsv1_cred.h33 const char *private_key,
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dwpa2-eap-ccmp.conf13 private_key="/etc/cert/user.p12"
/external/wpa_supplicant_8/src/eap_peer/
Deap_config.h153 u8 *private_key; member
Deap_tls_common.c88 params->private_key = (char *) config->private_key; in eap_tls_params_from_conf1()
111 params->private_key = (char *) config->private_key2; in eap_tls_params_from_conf2()
165 eap_tls_check_blob(sm, &params->private_key, in eap_tls_params_from_conf()
Deap_tls.c36 ((sm->init_phase2 ? config->private_key2 : config->private_key) in eap_tls_init()
58 } else if (config->private_key && !config->private_key_passwd) in eap_tls_init()
/external/wpa_supplicant_8/wpa_supplicant/doc/docbook/
Dwpa_supplicant.conf.sgml70 private_key="/etc/cert/user.prv"
135 private_key="/etc/cert/user.prv"
164 private_key="/etc/cert/user.prv"
/external/wpa_supplicant_8/hs20/server/ca/
Dopenssl-root.cnf31 private_key = $dir/private/cakey.pem# The private key
/external/wpa_supplicant_8/hs20/server/
Dhs20-osu-server.txt154 private_key=Key/server.key
196 private_key=/home/user/hs20-server/ca/server.key
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp1588 jobject private_key = reinterpret_cast<jobject>(RSA_get_app_data(rsa)); local
1589 if (!private_key) {
1603 env, rawSignDigestWithPrivateKey(env, private_key,
1635 jobject private_key = reinterpret_cast<jobject>(RSA_get_app_data(rsa)); local
1636 if (!private_key) {
1648 ScopedLocalRef<jbyteArray> cleartext(env, rsaDecryptWithPrivateKey(env, private_key,
1722 jobject private_key = reinterpret_cast<jobject>(ptr); local
1723 if (private_key == NULL) return;
1727 env->DeleteGlobalRef(private_key);
1777 jobject private_key = local
[all …]

12