Home
last modified time | relevance | path

Searched refs:privkey (Results 1 – 20 of 20) sorted by relevance

/external/vboot_reference/futility/
Dcmd_vbutil_key.c74 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 …]
Dcmd_create.c79 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/
Dssl_cert.c264 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 …]
Dinternal.h1986 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/
Dprivsep.c340 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;
Doakley.c1872 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);
Dcrypto_openssl.c1120 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/
Dcrypto_openssl.c631 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/
Drsa_private_key_unittest.cc367 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/
Dwps_common.c646 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()
Dwps.h883 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey);
885 struct wpabuf **privkey,
/external/openssh/
Dssh_api.c532 _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()
Dsshd.c2521 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/
Dopenssl-root.cnf67 default_keyfile = privkey.pem
Dopenssl.cnf78 default_keyfile = privkey.pem
/external/boringssl/src/
DFUZZING.md38 | `privkey` | 2048 |
/external/ltp/testcases/commands/tpm-tools/tpmtoken/tpmtoken_import/
Dtpmtoken_import_openssl.cnf97 default_keyfile = privkey.pem
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeCrypto.java130 NativeRef.EC_POINT pubkeyRef, byte[] privkey); in EVP_PKEY_new_EC_KEY() argument
/external/boringssl/src/include/openssl/
Dssl.h981 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/
DNativeCrypto.cpp2005 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()