/external/vboot_reference/futility/ |
H A D | cmd_vbutil_key.c | 74 VbPrivateKey *privkey; local 91 privkey = PrivateKeyReadPem(infile, algorithm); 92 if (privkey) { 93 if (0 != PrivateKeyWrite(outfile, privkey)) { 97 free(privkey); 109 VbPrivateKey *privkey; local 138 privkey = PrivateKeyRead(infile); 139 if (privkey) { 142 privkey->algorithm, 143 (privkey [all...] |
H A D | cmd_create.c | 79 VbPrivateKey *privkey = 0; local 114 privkey = (VbPrivateKey *)malloc(sizeof(VbPrivateKey)); 115 if (!privkey) 118 privkey->rsa_private_key = rsa_key; 119 privkey->algorithm = vb1_algorithm; 123 if (0 != PrivateKeyWrite(outfile, privkey)) { 152 free(privkey); 161 struct vb2_private_key *privkey = 0; local 193 privkey = calloc(1, sizeof(*privkey)); [all...] |
/external/ipsec-tools/src/racoon/ |
H A D | privsep.c | 340 vchar_t *privkey; local 356 if ((privkey = eay_get_pkcs1privkey(bufs[0])) == NULL){ 361 reply->bufs.buflen[0] = privkey->l; 362 reply->hdr.ac_len = sizeof(*reply) + privkey->l; 371 memcpy(reply + 1, privkey->v, privkey->l); 372 vfree(privkey); 706 vchar_t *privkey; local 736 if ((privkey = vmalloc(len - sizeof(*msg))) == NULL) 739 memcpy(privkey [all...] |
H A 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);
|
/external/boringssl/src/crypto/evp/ |
H A D | p_dsa_asn1.c | 165 ASN1_INTEGER *privkey = NULL; local 209 privkey = t2->value.integer; 212 privkey = d2i_ASN1_INTEGER(NULL, &p, pklen); 213 if (privkey == NULL) { 216 if (privkey->type == V_ASN1_NEG_INTEGER) { 218 ASN1_INTEGER_free(privkey); 219 privkey = d2i_ASN1_UINTEGER(NULL, &q, pklen); 220 if (privkey == NULL) { 237 dsa->priv_key = ASN1_INTEGER_to_BN(privkey, NULL); 262 ASN1_INTEGER_free(privkey); [all...] |
/external/openssh/ |
H A D | ssh_api.c | 532 _ssh_host_key_sign(struct sshkey *privkey, struct sshkey *pubkey, argument 536 return sshkey_sign(privkey, signature, slen, data, dlen, compat);
|
H A D | sshd.c | 2502 sshd_hostkey_sign(Key *privkey, Key *pubkey, u_char **signature, size_t *slen, argument 2508 if (privkey) { 2509 if (PRIVSEP(key_sign(privkey, signature, &xxx_slen, data, xxx_dlen) < 0))
|
/external/wpa_supplicant_8/hostapd/src/wps/ |
H A D | wps_common.c | 645 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) argument 663 wpabuf_free(*privkey); 664 *privkey = priv; 671 struct wpabuf **privkey, 688 if (wps_nfc_gen_dh(pubkey, privkey) < 0) { 670 wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, struct wpabuf **privkey, struct wpabuf **dev_pw) argument
|
/external/wpa_supplicant_8/src/wps/ |
H A D | wps_common.c | 645 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) argument 663 wpabuf_free(*privkey); 664 *privkey = priv; 671 struct wpabuf **privkey, 688 if (wps_nfc_gen_dh(pubkey, privkey) < 0) { 670 wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, struct wpabuf **privkey, struct wpabuf **dev_pw) argument
|
/external/wpa_supplicant_8/wpa_supplicant/src/wps/ |
H A D | wps_common.c | 645 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) argument 663 wpabuf_free(*privkey); 664 *privkey = priv; 671 struct wpabuf **privkey, 688 if (wps_nfc_gen_dh(pubkey, privkey) < 0) { 670 wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, struct wpabuf **privkey, struct wpabuf **dev_pw) argument
|
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | crypto_openssl.c | 533 struct wpabuf *pubkey = NULL, *privkey = NULL; local 559 privkey = wpabuf_alloc(privlen); 560 if (privkey == NULL) 564 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); 566 *priv = privkey; 572 wpabuf_clear_free(privkey);
|
/external/wpa_supplicant_8/src/crypto/ |
H A D | crypto_openssl.c | 533 struct wpabuf *pubkey = NULL, *privkey = NULL; local 559 privkey = wpabuf_alloc(privlen); 560 if (privkey == NULL) 564 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); 566 *priv = privkey; 572 wpabuf_clear_free(privkey);
|
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/ |
H A D | crypto_openssl.c | 533 struct wpabuf *pubkey = NULL, *privkey = NULL; local 559 privkey = wpabuf_alloc(privlen); 560 if (privkey == NULL) 564 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); 566 *priv = privkey; 572 wpabuf_clear_free(privkey);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
H A D | NativeCrypto.java | 170 NativeRef.EC_POINT pubkeyRef, byte[] privkey); 169 EVP_PKEY_new_EC_KEY(NativeRef.EC_GROUP groupRef, NativeRef.EC_POINT pubkeyRef, byte[] privkey) argument
|
/external/conscrypt/src/main/native/ |
H A D | org_conscrypt_NativeCrypto.cpp | 4142 const BIGNUM *privkey = EC_KEY_get0_private_key(eckey.get()); local 4144 jbyteArray privBytes = bignumToArray(env, privkey, "privkey"); 4260 Unique_EC_KEY privkey(EVP_PKEY_get1_EC_KEY(privPkey)); 4261 if (privkey.get() == NULL) { 4270 privkey.get(),
|