Searched defs:private_key (Results 1 - 25 of 30) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/dsa/
H A Ddsa_shared_secret.c22 @param private_key The private DSA key (the exponent)
29 int dsa_shared_secret(void *private_key, void *base, argument
37 LTC_ARGCHK(private_key != NULL);
47 if ((err = mp_exptmod(base, private_key, public_key->p, res)) != CRYPT_OK) {
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_shared_secret.c28 @param private_key The private ECC key
34 int ecc_shared_secret(ecc_key *private_key, ecc_key *public_key, argument
42 LTC_ARGCHK(private_key != NULL);
48 if (private_key->type != PK_PRIVATE) {
52 if (ltc_ecc_is_valid_idx(private_key->idx) == 0 || ltc_ecc_is_valid_idx(public_key->idx) == 0) {
56 if (XSTRCMP(private_key->dp->name, public_key->dp->name) != 0) {
71 if ((err = mp_read_radix(prime, (char *)private_key->dp->prime, 16)) != CRYPT_OK) { goto done; }
72 if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) { goto done; }
/external/chromium/chrome/browser/extensions/
H A Dextension_creator.cc46 // Validate input |private_key| (if provided).
125 std::string private_key; local
126 if (!Extension::ProducePEM(private_key_bytes, &private_key)) {
132 if (!Extension::FormatPEMForFileOutput(private_key, &pem_output,
166 crypto::RSAPrivateKey* private_key,
169 crypto::SignatureCreator::Create(private_key));
189 crypto::RSAPrivateKey* private_key,
197 if (!private_key->ExportPublicKey(&public_key)) {
165 SignZip(const FilePath& zip_path, crypto::RSAPrivateKey* private_key, std::vector<uint8>* signature) argument
188 WriteCRX(const FilePath& zip_path, crypto::RSAPrivateKey* private_key, const std::vector<uint8>& signature, const FilePath& crx_path) argument
/external/chromium/net/base/
H A Dkeygen_handler_mac.cc99 SecKeyRef private_key,
107 SecKeyRef private_key = NULL; local
129 &public_key, &private_key);
171 err = SignData(encoded, private_key, &signature);
203 if (private_key)
204 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(private_key));
215 if (private_key)
216 CFRelease(private_key);
307 SecKeyRef private_key,
310 OSStatus err = CreateSignatureContext(private_key,
306 SignData(CSSM_DATA data, SecKeyRef private_key, CSSM_DATA* signature) argument
[all...]
/external/openssl/crypto/asn1/
H A Dn_pkey.c76 ASN1_OCTET_STRING *private_key; member in struct:netscape_pkey_st
102 ASN1_SIMPLE(NETSCAPE_PKEY, private_key, ASN1_OCTET_STRING)
150 pkey->private_key->length=rsalen;
178 pkey->private_key->data = zz;
197 OPENSSL_cleanse(pkey->private_key->data, rsalen);
333 zz=pkey->private_key->data;
334 if ((ret=d2i_RSAPrivateKey(a,&zz,pkey->private_key->length)) == NULL)
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
H A Drsa.c25 int private_key; /* whether private key is set */ member in struct:crypto_rsa_key
28 /* The following parameters are available only if private_key is set */
145 key->private_key = 1;
258 if (use_private && !key->private_key)
H A Dtlsv1_cred.c227 * @private_key: File or reference name for the key in PEM or DER format
230 * @private_key_blob: private_key as inlined data or %NULL if not used
235 const char *private_key,
247 if (private_key) {
252 buf = (u8 *) os_readfile(private_key, &len);
255 private_key);
234 tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) argument
/external/wpa_supplicant_8/hostapd/src/tls/
H A Drsa.c18 int private_key; /* whether private key is set */ member in struct:crypto_rsa_key
21 /* The following parameters are available only if private_key is set */
137 key->private_key = 1;
249 if (use_private && !key->private_key)
H A Dtlsv1_cred.c310 * @private_key: File or reference name for the key in PEM or DER format
313 * @private_key_blob: private_key as inlined data or %NULL if not used
318 const char *private_key,
331 if (private_key) {
336 buf = (u8 *) os_readfile(private_key, &len);
339 private_key);
317 tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) argument
/external/wpa_supplicant_8/src/tls/
H A Drsa.c18 int private_key; /* whether private key is set */ member in struct:crypto_rsa_key
21 /* The following parameters are available only if private_key is set */
137 key->private_key = 1;
249 if (use_private && !key->private_key)
H A Dtlsv1_cred.c310 * @private_key: File or reference name for the key in PEM or DER format
313 * @private_key_blob: private_key as inlined data or %NULL if not used
318 const char *private_key,
331 if (private_key) {
336 buf = (u8 *) os_readfile(private_key, &len);
339 private_key);
317 tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) argument
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Drsa.c18 int private_key; /* whether private key is set */ member in struct:crypto_rsa_key
21 /* The following parameters are available only if private_key is set */
137 key->private_key = 1;
249 if (use_private && !key->private_key)
H A Dtlsv1_cred.c310 * @private_key: File or reference name for the key in PEM or DER format
313 * @private_key_blob: private_key as inlined data or %NULL if not used
318 const char *private_key,
331 if (private_key) {
336 buf = (u8 *) os_readfile(private_key, &len);
339 private_key);
317 tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) argument
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
H A Dtls.h55 * @private_key: File or reference name for client private key in PEM or DER
57 * @private_key_blob: private_key as inlined data or %NULL if not used
94 const char *private_key; member in struct:tls_connection_params
H A Dtls_openssl.c73 EVP_PKEY *private_key; /* the private key if using engine */ member in struct:tls_connection
793 conn->private_key = ENGINE_load_private_key(conn->engine,
795 if (!conn->private_key) {
825 if (conn->private_key) {
826 EVP_PKEY_free(conn->private_key);
827 conn->private_key = NULL;
841 if (conn->private_key) {
842 EVP_PKEY_free(conn->private_key);
843 conn->private_key = NULL;
1502 static int tls_read_pkcs12(SSL_CTX *ssl_ctx, SSL *ssl, const char *private_key, argument
1681 tls_connection_private_key(void *_ssl_ctx, struct tls_connection *conn, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) argument
1842 tls_global_private_key(SSL_CTX *ssl_ctx, const char *private_key, const char *private_key_passwd) argument
[all...]
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
H A Deap_config.h123 * private_key - File path to client private key file (PEM/DER/PFX)
132 * configuring private_key in one of the following formats:
138 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
147 u8 *private_key; member in struct:eap_peer_config
252 * This field is like private_key, but used for phase 2 (inside
/external/wpa_supplicant_8/hostapd/src/eap_peer/
H A Deap_config.h129 * private_key - File path to client private key file (PEM/DER/PFX)
138 * configuring private_key in one of the following formats:
144 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
153 u8 *private_key; member in struct:eap_peer_config
258 * This field is like private_key, but used for phase 2 (inside
/external/wpa_supplicant_8/src/eap_peer/
H A Deap_config.h129 * private_key - File path to client private key file (PEM/DER/PFX)
138 * configuring private_key in one of the following formats:
144 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
153 u8 *private_key; member in struct:eap_peer_config
258 * This field is like private_key, but used for phase 2 (inside
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/
H A Deap_config.h129 * private_key - File path to client private key file (PEM/DER/PFX)
138 * configuring private_key in one of the following formats:
144 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
153 u8 *private_key; member in struct:eap_peer_config
258 * This field is like private_key, but used for phase 2 (inside
/external/chromium/net/socket/
H A Dssl_server_socket_nss.cc304 SECKEYPrivateKeyStr* private_key = NULL; local
323 key_usage, &private_key, NULL);
332 rv = SSL_ConfigSecureServer(nss_fd_, cert, private_key, cert_kea);
334 SECKEY_DestroyPrivateKey(private_key);
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dtls.h101 * @private_key: File or reference name for client private key in PEM or DER
103 * @private_key_blob: private_key as inlined data or %NULL if not used
139 const char *private_key; member in struct:tls_connection_params
H A Dtls_openssl.c69 EVP_PKEY *private_key; /* the private key if using engine */ member in struct:tls_connection
848 conn->private_key = ENGINE_load_private_key(conn->engine,
850 if (!conn->private_key) {
880 if (conn->private_key) {
881 EVP_PKEY_free(conn->private_key);
882 conn->private_key = NULL;
896 if (conn->private_key) {
897 EVP_PKEY_free(conn->private_key);
898 conn->private_key = NULL;
1794 static int tls_read_pkcs12(SSL_CTX *ssl_ctx, SSL *ssl, const char *private_key, argument
1975 tls_connection_private_key(void *_ssl_ctx, struct tls_connection *conn, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) argument
2120 tls_global_private_key(SSL_CTX *ssl_ctx, const char *private_key, const char *private_key_passwd) argument
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Dtls.h101 * @private_key: File or reference name for client private key in PEM or DER
103 * @private_key_blob: private_key as inlined data or %NULL if not used
139 const char *private_key; member in struct:tls_connection_params
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dtls.h101 * @private_key: File or reference name for client private key in PEM or DER
103 * @private_key_blob: private_key as inlined data or %NULL if not used
139 const char *private_key; member in struct:tls_connection_params
/external/wpa_supplicant_8/wpa_supplicant/
H A Dconfig.h109 * private_key - File path to client private key file (PEM/DER/PFX)
118 * configuring private_key in one of the following formats:
124 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
133 char *private_key; member in struct:wpa_cred

Completed in 355 milliseconds

12