/external/vboot_reference/futility/ |
D | cmd_vbutil_key.c | 74 VbPrivateKey *privkey; in Pack() local 91 privkey = PrivateKeyReadPem(infile, algorithm); in Pack() 92 if (privkey) { in Pack() 93 if (0 != PrivateKeyWrite(outfile, privkey)) { in Pack() 97 free(privkey); in Pack() 109 VbPrivateKey *privkey; in Unpack() local 138 privkey = PrivateKeyRead(infile); in Unpack() 139 if (privkey) { in Unpack() 142 privkey->algorithm, in Unpack() 143 (privkey->algorithm < in Unpack() [all …]
|
D | cmd_create.c | 79 VbPrivateKey *privkey = 0; in vb1_make_keypair() local 114 privkey = (VbPrivateKey *)malloc(sizeof(VbPrivateKey)); in vb1_make_keypair() 115 if (!privkey) in vb1_make_keypair() 118 privkey->rsa_private_key = rsa_key; in vb1_make_keypair() 119 privkey->algorithm = vb1_algorithm; in vb1_make_keypair() 123 if (0 != PrivateKeyWrite(outfile, privkey)) { in vb1_make_keypair() 152 free(privkey); in vb1_make_keypair() 161 struct vb2_private_key *privkey = 0; in vb2_make_keypair() local 193 privkey = calloc(1, sizeof(*privkey)); in vb2_make_keypair() 194 if (!privkey) { in vb2_make_keypair() [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_cert.c | 264 CRYPTO_BUFFER *leaf_buffer, EVP_PKEY *privkey) { in check_leaf_cert_and_privkey() argument 288 if (privkey != NULL && in check_leaf_cert_and_privkey() 290 !ssl_compare_public_and_private_key(pubkey, privkey)) { in check_leaf_cert_and_privkey() 305 EVP_PKEY *privkey, const SSL_PRIVATE_KEY_METHOD *privkey_method) { in cert_set_chain_and_key() argument 307 (privkey == NULL && privkey_method == NULL)) { in cert_set_chain_and_key() 312 if (privkey != NULL && privkey_method != NULL) { in cert_set_chain_and_key() 317 switch (check_leaf_cert_and_privkey(certs[0], privkey)) { in cert_set_chain_and_key() 341 cert->privatekey = privkey; in cert_set_chain_and_key() 342 if (privkey != NULL) { in cert_set_chain_and_key() 343 EVP_PKEY_up_ref(privkey); in cert_set_chain_and_key() [all …]
|
D | internal.h | 1986 const EVP_PKEY *privkey); in OPENSSL_MSVC_PRAGMA() 1987 int ssl_cert_check_private_key(const CERT *cert, const EVP_PKEY *privkey); in OPENSSL_MSVC_PRAGMA()
|
/external/ipsec-tools/src/racoon/ |
D | privsep.c | 340 vchar_t *privkey; in privsep_init() local 356 if ((privkey = eay_get_pkcs1privkey(bufs[0])) == NULL){ in privsep_init() 361 reply->bufs.buflen[0] = privkey->l; in privsep_init() 362 reply->hdr.ac_len = sizeof(*reply) + privkey->l; in privsep_init() 371 memcpy(reply + 1, privkey->v, privkey->l); in privsep_init() 372 vfree(privkey); in privsep_init() 706 vchar_t *privkey; local 736 if ((privkey = vmalloc(len - sizeof(*msg))) == NULL) 739 memcpy(privkey->v, msg + 1, privkey->l); 741 return privkey;
|
D | oakley.c | 1872 vchar_t *privkey = NULL; local 1890 privkey = privsep_eay_get_pkcs1privkey(path); 1891 if (privkey == NULL) { 1897 plogdump(LLV_DEBUG2, privkey->v, privkey->l); 1899 iph1->sig = eay_get_x509sign(iph1->hash, privkey); 1925 if (privkey != NULL) 1926 vfree(privkey);
|
D | crypto_openssl.c | 1120 eay_get_x509sign(src, privkey) in eay_get_x509sign() argument 1121 vchar_t *src, *privkey; in eay_get_x509sign() 1124 u_char *bp = (unsigned char *) privkey->v; 1130 evp = d2i_PrivateKey(EVP_PKEY_RSA, NULL, (void *)&bp, privkey->l);
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 631 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() local 658 privkey = wpabuf_alloc(privlen); in dh5_init() 659 if (privkey == NULL) in dh5_init() 663 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init() 665 *priv = privkey; in dh5_init() 671 wpabuf_clear_free(privkey); in dh5_init() 676 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() 706 privkey = wpabuf_alloc(privlen); in dh5_init() 707 if (!privkey) in dh5_init() 711 BN_bn2bin(priv_key, wpabuf_put(privkey, privlen)); in dh5_init() [all …]
|
/external/libchrome/crypto/ |
D | rsa_private_key_unittest.cc | 367 std::vector<uint8_t> privkey; in TEST() local 369 ASSERT_TRUE(key_pair->ExportPrivateKey(&privkey)); in TEST() 377 ASSERT_EQ(privkey, privkey_copy); in TEST()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_common.c | 646 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) in wps_nfc_gen_dh() argument 664 wpabuf_clear_free(*privkey); in wps_nfc_gen_dh() 665 *privkey = priv; in wps_nfc_gen_dh() 672 struct wpabuf **privkey, in wps_nfc_token_gen() argument 689 if (wps_nfc_gen_dh(pubkey, privkey) < 0) { in wps_nfc_token_gen()
|
D | wps.h | 883 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey); 885 struct wpabuf **privkey,
|
/external/openssh/ |
D | ssh_api.c | 532 _ssh_host_key_sign(struct sshkey *privkey, struct sshkey *pubkey, in _ssh_host_key_sign() argument 536 return sshkey_sign(privkey, signature, slen, data, dlen, compat); in _ssh_host_key_sign()
|
D | sshd.c | 2521 sshd_hostkey_sign(Key *privkey, Key *pubkey, u_char **signature, size_t *slen, argument 2527 if (privkey) { 2528 if (PRIVSEP(key_sign(privkey, signature, &xxx_slen, data, xxx_dlen) < 0))
|
/external/wpa_supplicant_8/hs20/server/ca/ |
D | openssl-root.cnf | 67 default_keyfile = privkey.pem
|
D | openssl.cnf | 78 default_keyfile = privkey.pem
|
/external/boringssl/src/ |
D | FUZZING.md | 38 | `privkey` | 2048 |
|
/external/ltp/testcases/commands/tpm-tools/tpmtoken/tpmtoken_import/ |
D | tpmtoken_import_openssl.cnf | 97 default_keyfile = privkey.pem
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | NativeCrypto.java | 130 NativeRef.EC_POINT pubkeyRef, byte[] privkey); in EVP_PKEY_new_EC_KEY() argument
|
/external/boringssl/src/include/openssl/ |
D | ssl.h | 981 EVP_PKEY *privkey, const SSL_PRIVATE_KEY_METHOD *privkey_method); 988 SSL *ssl, CRYPTO_BUFFER *const *certs, size_t num_certs, EVP_PKEY *privkey,
|
/external/conscrypt/common/src/jni/main/cpp/ |
D | NativeCrypto.cpp | 2005 const BIGNUM *privkey = EC_KEY_get0_private_key(eckey.get()); in NativeCrypto_EC_KEY_get_private_key() local 2007 jbyteArray privBytes = bignumToArray(env, privkey, "privkey"); in NativeCrypto_EC_KEY_get_private_key() 2099 bssl::UniquePtr<EC_KEY> privkey(EVP_PKEY_get1_EC_KEY(privPkey)); in NativeCrypto_ECDH_compute_key() local 2100 if (privkey.get() == nullptr) { in NativeCrypto_ECDH_compute_key() 2107 privkey.get(), in NativeCrypto_ECDH_compute_key()
|