/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/scapy/scapy/layers/tls/ |
D | keyexchange_tls13.py | 44 self.privkey = None 65 privkey = params.generate_private_key() 66 self.privkey = privkey 67 pubkey = privkey.public_key() 72 privkey = x25519.X25519PrivateKey.generate() 73 self.privkey = privkey 74 pubkey = privkey.public_key() 78 privkey = ec.generate_private_key(curve, default_backend()) 79 self.privkey = privkey 80 pubkey = privkey.public_key() [all …]
|
D | cert.py | 363 privkey = RSAPrivateKey_OpenSSL(obj.der) 364 privkey = privkey.privateKey 369 privkey = ECDSAPrivateKey_OpenSSL(obj.der) 370 privkey = privkey.privateKey 376 privkey = RSAPrivateKey(obj.der) 381 privkey = ECDSAPrivateKey(obj.der) 387 obj.import_from_asn1pkt(privkey) 394 obj.pem = der2pem(raw(privkey), marker) 480 def import_from_asn1pkt(self, privkey): argument 481 modulus = privkey.modulus.val [all …]
|
/external/scapy/doc/notebooks/tls/ |
D | notebook1_x509.ipynb | 96 "privkey = RSAPrivateKey(keystr)\n", 97 "privkey.show()" 108 "v = privkey.version\n", 121 "privkey.version = ASN1_INTEGER(1)\n", 122 "privkey.modulus.val *= 2\n", 123 "privkey.show()" 135 "print 'New version bytes: %r' % raw(privkey.version)\n", 136 "print 'New modulus bytes: %r...' % raw(privkey.modulus)[:6]\n", 137 "print 'Rebuilt data: %r...' % raw(privkey)[:13]" 158 "privkey = RSAPrivateKey(keystr)\n", [all …]
|
D | notebook4_tls13.ipynb | 72 "#privkey = privnum.private_key(default_backend())\n", 73 "#sess.tls13_client_privshares[\"secp256r1\"] = privkey"
|
/external/boringssl/src/ssl/ |
D | ssl_cert.cc | 258 CRYPTO_BUFFER *leaf_buffer, EVP_PKEY *privkey) { in check_leaf_cert_and_privkey() argument 280 if (privkey != NULL && in check_leaf_cert_and_privkey() 282 !ssl_compare_public_and_private_key(pubkey.get(), privkey)) { in check_leaf_cert_and_privkey() 292 EVP_PKEY *privkey, const SSL_PRIVATE_KEY_METHOD *privkey_method) { in cert_set_chain_and_key() argument 294 (privkey == NULL && privkey_method == NULL)) { in cert_set_chain_and_key() 299 if (privkey != NULL && privkey_method != NULL) { in cert_set_chain_and_key() 304 switch (check_leaf_cert_and_privkey(certs[0], privkey)) { in cert_set_chain_and_key() 328 cert->privatekey = privkey; in cert_set_chain_and_key() 329 if (privkey != NULL) { in cert_set_chain_and_key() 330 EVP_PKEY_up_ref(privkey); in cert_set_chain_and_key() [all …]
|
/external/boringssl/src/crypto/evp/ |
D | evp_extra_test.cc | 598 bssl::UniquePtr<EVP_PKEY> privkey(EVP_PKEY_new_ed25519_private(kPrivateKey)); in TEST() local 599 ASSERT_TRUE(privkey); in TEST() 600 EXPECT_EQ(EVP_PKEY_ED25519, EVP_PKEY_id(privkey.get())); in TEST() 604 ASSERT_TRUE(EVP_marshal_public_key(cbb.get(), privkey.get())); in TEST() 611 ASSERT_TRUE(EVP_marshal_private_key(cbb.get(), privkey.get())); in TEST() 617 EXPECT_EQ(1, EVP_PKEY_cmp(pubkey.get(), privkey.get())); in TEST() 623 EXPECT_EQ(0, EVP_PKEY_cmp(privkey.get(), pubkey2.get())); in TEST() 628 EVP_DigestSignInit(ctx.get(), nullptr, nullptr, nullptr, privkey.get())); in TEST() 636 privkey.get())); in TEST()
|
D | p_ed25519_asn1.c | 45 static int set_privkey(EVP_PKEY *pkey, const uint8_t privkey[64]) { in set_privkey() 52 OPENSSL_memcpy(key->key.priv, privkey, 64); in set_privkey() 114 uint8_t pubkey[32], privkey[64]; in ed25519_priv_decode() local 115 ED25519_keypair_from_seed(pubkey, privkey, CBS_data(&inner)); in ed25519_priv_decode() 116 return set_privkey(out, privkey); in ed25519_priv_decode()
|
/external/honggfuzz/examples/openssl/ |
D | make.sh | 46 for x in x509 privkey client server; do 50 for x in x509 privkey client server; do 54 for x in x509 privkey client server; do
|
D | client.c | 445 RSA* privkey = d2i_RSAPrivateKey(NULL, &bufp, sizeof(kRSAPrivateKeyDER)); in LLVMFuzzerInitialize() local 446 assert(privkey != NULL); in LLVMFuzzerInitialize() 448 EVP_PKEY_assign_RSA(pkey, privkey); in LLVMFuzzerInitialize()
|
D | server.c | 483 RSA* privkey = d2i_RSAPrivateKey(NULL, &bufp, sizeof(kRSAPrivateKeyDER)); in LLVMFuzzerInitialize() local 484 assert(privkey != NULL); in LLVMFuzzerInitialize() 486 EVP_PKEY_assign_RSA(pkey, privkey); in LLVMFuzzerInitialize()
|
D | README.md | 52 $ /home/jagger/src/honggfuzz/honggfuzz -f corpus_privkey/ -P -- ./openssl-master.address.privkey
|
/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;
|
/external/wpa_supplicant_8/src/ap/ |
D | dpp_hostapd.c | 117 u8 *privkey = NULL; in hostapd_dpp_bootstrap_gen() local 142 privkey = os_malloc(privkey_len); in hostapd_dpp_bootstrap_gen() 143 if (!privkey || in hostapd_dpp_bootstrap_gen() 144 hexstr2bin(key, privkey, privkey_len) < 0) in hostapd_dpp_bootstrap_gen() 148 pk = dpp_keygen(bi, curve, privkey, privkey_len); in hostapd_dpp_bootstrap_gen() 188 bin_clear_free(privkey, privkey_len); in hostapd_dpp_bootstrap_gen() 1282 u8 *privkey = NULL; in hostapd_dpp_configurator_add() local 1292 privkey = os_malloc(privkey_len); in hostapd_dpp_configurator_add() 1293 if (!privkey || in hostapd_dpp_configurator_add() 1294 hexstr2bin(key, privkey, privkey_len) < 0) in hostapd_dpp_configurator_add() [all …]
|
/external/libchrome/crypto/ |
D | rsa_private_key_unittest.cc | 363 std::vector<uint8_t> privkey; in TEST() local 365 ASSERT_TRUE(key_pair->ExportPrivateKey(&privkey)); in TEST() 373 ASSERT_EQ(privkey, privkey_copy); in TEST()
|
/external/scapy/test/ |
D | tls13.uts | 55 privkey = privnum.private_key(default_backend()) 56 t.tls_session.tls13_client_privshares["secp256r1"] = privkey 161 privkey = X25519PrivateKey._from_private_bytes(x25519_client_privkey) 162 t.tls_session.tls13_client_privshares["x25519"] = privkey
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 646 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() local 673 privkey = wpabuf_alloc(privlen); in dh5_init() 674 if (privkey == NULL) in dh5_init() 678 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init() 680 *priv = privkey; in dh5_init() 686 wpabuf_clear_free(privkey); in dh5_init() 691 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() 721 privkey = wpabuf_alloc(privlen); in dh5_init() 722 if (!privkey) in dh5_init() 726 BN_bn2bin(priv_key, wpabuf_put(privkey, privlen)); in dh5_init() [all …]
|
/external/boringssl/src/ssl/test/ |
D | fuzzer.h | 324 bssl::UniquePtr<RSA> privkey(RSA_private_key_from_bytes( in Init() 326 if (!ctx_ || !privkey || !pkey || in Init() 327 !EVP_PKEY_set1_RSA(pkey.get(), privkey.get()) || in Init()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | dpp_supplicant.c | 137 u8 *privkey = NULL; in wpas_dpp_bootstrap_gen() local 162 privkey = os_malloc(privkey_len); in wpas_dpp_bootstrap_gen() 163 if (!privkey || in wpas_dpp_bootstrap_gen() 164 hexstr2bin(key, privkey, privkey_len) < 0) in wpas_dpp_bootstrap_gen() 168 pk = dpp_keygen(bi, curve, privkey, privkey_len); in wpas_dpp_bootstrap_gen() 208 bin_clear_free(privkey, privkey_len); in wpas_dpp_bootstrap_gen() 1693 u8 *privkey = NULL; in wpas_dpp_configurator_add() local 1703 privkey = os_malloc(privkey_len); in wpas_dpp_configurator_add() 1704 if (!privkey || in wpas_dpp_configurator_add() 1705 hexstr2bin(key, privkey, privkey_len) < 0) in wpas_dpp_configurator_add() [all …]
|
/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()
|
/external/wpa_supplicant_8/src/common/ |
D | dpp.h | 215 const u8 *privkey, size_t privkey_len); 249 dpp_keygen_configurator(const char *curve, const u8 *privkey,
|
/external/curl/lib/ |
D | ssh.h | 149 ssh_key privkey; member
|
/external/libmtp/src/ |
D | mtpz.c | 198 gcry_sexp_t privkey; member 283 …gcry_sexp_build(&rsa->privkey, NULL, "(private-key (rsa (n %m) (e %m) (d %m)))", mpi_modulus, mpi_… in mtpz_rsa_init() 295 gcry_sexp_release(rsa->privkey); in mtpz_rsa_free() 308 gcry_pk_decrypt(&sexp_plain, sexp_data, rsa->privkey); in mtpz_rsa_decrypt()
|
/external/wpa_supplicant_8/hs20/server/ca/ |
D | openssl-root.cnf | 67 default_keyfile = privkey.pem
|