Home
last modified time | relevance | path

Searched refs:privkey (Results 1 – 16 of 16) 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/crypto/evp/
Dp_dsa_asn1.c181 ASN1_INTEGER *privkey = NULL; in dsa_priv_decode() local
192 privkey = d2i_ASN1_INTEGER(NULL, &p, pklen); in dsa_priv_decode()
193 if (privkey == NULL || privkey->type == V_ASN1_NEG_INTEGER) { in dsa_priv_decode()
209 dsa->priv_key = ASN1_INTEGER_to_BN(privkey, NULL); in dsa_priv_decode()
233 ASN1_INTEGER_free(privkey); in dsa_priv_decode()
242 ASN1_INTEGER_free(privkey); in dsa_priv_decode()
/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/libchrome/crypto/
Drsa_private_key_unittest.cc366 std::vector<uint8_t> privkey; in TEST() local
368 ASSERT_TRUE(key_pair->ExportPrivateKey(&privkey)); in TEST()
376 ASSERT_EQ(privkey, privkey_copy); in TEST()
/external/wpa_supplicant_8/src/wps/
Dwps_common.c643 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) in wps_nfc_gen_dh() argument
661 wpabuf_free(*privkey); in wps_nfc_gen_dh()
662 *privkey = priv; in wps_nfc_gen_dh()
669 struct wpabuf **privkey, in wps_nfc_token_gen() argument
686 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/chromium-trace/catapult/third_party/gsutil/third_party/rsa/doc/
Dusage.rst31 >>> (pubkey, privkey) = rsa.newkeys(512)
58 >>> (pubkey, privkey) = rsa.newkeys(512, poolsize=8)
191 >>> (pubkey, privkey) = rsa.newkeys(512)
193 >>> signature = rsa.sign(message, privkey, 'SHA-1')
231 ... signature = rsa.sign(msgfile, privkey, 'SHA-1')
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c606 struct wpabuf *pubkey = NULL, *privkey = NULL; in dh5_init() local
632 privkey = wpabuf_alloc(privlen); in dh5_init()
633 if (privkey == NULL) in dh5_init()
637 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init()
639 *priv = privkey; in dh5_init()
645 wpabuf_clear_free(privkey); in dh5_init()
/external/wpa_supplicant_8/hs20/server/ca/
Dopenssl-root.cnf67 default_keyfile = privkey.pem
Dopenssl.cnf78 default_keyfile = privkey.pem
/external/boringssl/src/
DFUZZING.md37 | `privkey` | 2048 |
/external/conscrypt/src/main/java/org/conscrypt/
DNativeCrypto.java160 NativeRef.EC_POINT pubkeyRef, byte[] privkey); in EVP_PKEY_new_EC_KEY() argument
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp3934 const BIGNUM *privkey = EC_KEY_get0_private_key(eckey.get()); local
3936 jbyteArray privBytes = bignumToArray(env, privkey, "privkey");
4054 Unique_EC_KEY privkey(EVP_PKEY_get1_EC_KEY(privPkey)); local
4055 if (privkey.get() == nullptr) {
4061 ECDH_compute_key(&out[outOffset], out.size() - outOffset, pubkeyPoint, privkey.get(),