Searched defs:pubkey (Results 1 - 25 of 42) sorted by relevance

12

/external/chromium_org/third_party/openssl/openssl/crypto/asn1/
H A Dx_pubkey.c77 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; local
78 EVP_PKEY_free(pubkey->pkey);
/external/openssl/crypto/asn1/
H A Dx_pubkey.c77 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; local
78 EVP_PKEY_free(pubkey->pkey);
/external/chromium_org/crypto/
H A Drsa_private_key_nss_unittest.cc41 std::vector<uint8> pubkey; local
43 ASSERT_TRUE(key_pair->ExportPublicKey(&pubkey));
51 ASSERT_EQ(pubkey, pubkey_copy);
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_decrypt_key.c42 ecc_key pubkey; local
94 if ((err = ecc_import(decode[1].data, decode[1].size, &pubkey)) != CRYPT_OK) {
100 if ((err = ecc_shared_secret(key, &pubkey, ecc_shared, &x)) != CRYPT_OK) {
101 ecc_free(&pubkey);
104 ecc_free(&pubkey);
H A Decc_sign_hash.c41 ecc_key pubkey; local
74 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) {
79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; }
82 ecc_free(&pubkey);
85 if ((err = mp_invmod(pubkey.k, p, pubkey.k)) != CRYPT_OK) { goto error; } /* k = 1/k */
89 if ((err = mp_mulmod(s, pubkey.k, p, s)) != CRYPT_OK) { goto error; } /* s = (e + xr)/k */
90 ecc_free(&pubkey);
104 ecc_free(&pubkey);
[all...]
H A Decc_encrypt_key.c44 ecc_key pubkey; local
67 if ((err = ecc_make_key_ex(prng, wprng, &pubkey, key->dp)) != CRYPT_OK) {
84 ecc_free(&pubkey);
89 if ((err = ecc_export(pub_expt, &pubkeysize, PK_PUBLIC, &pubkey)) != CRYPT_OK) {
90 ecc_free(&pubkey);
96 if ((err = ecc_shared_secret(&pubkey, key, ecc_shared, &x)) != CRYPT_OK) {
97 ecc_free(&pubkey);
100 ecc_free(&pubkey);
/external/chromium_org/third_party/libjingle/source/talk/base/
H A Dnssidentity.h47 NSSKeyPair(SECKEYPrivateKey* privkey, SECKEYPublicKey* pubkey) : argument
48 privkey_(privkey), pubkey_(pubkey) {}
56 SECKEYPublicKey * pubkey() const { return pubkey_; } function in class:talk_base::NSSKeyPair
H A Dnssidentity.cc63 SECKEYPublicKey *pubkey = NULL; local
70 &rsaparams, &pubkey, PR_FALSE /*permanent*/,
77 return new NSSKeyPair(privkey, pubkey);
86 SECKEYPublicKey *pubkey = SECKEY_CopyPublicKey(pubkey_);
87 if (!pubkey) {
92 return new NSSKeyPair(privkey, pubkey);
333 spki = SECKEY_CreateSubjectPublicKeyInfo(keypair->pubkey());
438 SECKEYPublicKey *pubkey = SECKEY_ConvertToPublicKey(privkey); local
446 scoped_ptr<NSSKeyPair> keypair(new NSSKeyPair(privkey, pubkey));
/external/chromium_org/third_party/openssl/openssl/apps/
H A Dspkac.c87 int verify=0,noout=0,pubkey=0; local
156 else if (strcmp(*argv,"-pubkey") == 0)
157 pubkey=1;
177 BIO_printf(bio_err," -pubkey output public key\n");
295 if(pubkey) PEM_write_bio_PUBKEY(out, pkey);
/external/openssl/apps/
H A Dspkac.c87 int verify=0,noout=0,pubkey=0; local
156 else if (strcmp(*argv,"-pubkey") == 0)
157 pubkey=1;
177 BIO_printf(bio_err," -pubkey output public key\n");
295 if(pubkey) PEM_write_bio_PUBKEY(out, pkey);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
H A DNetscapeCertRequest.java53 PublicKey pubkey ; field in class:NetscapeCertRequest
120 pubkey = KeyFactory.getInstance(keyAlg.getObjectId().getId(), "BC")
139 pubkey = pub_key;
143 //content_der.add(new SubjectPublicKeyInfo(sigAlg, new RSAPublicKeyStructure(pubkey.getModulus(), pubkey.getPublicExponent()).getDERObject()));
188 return pubkey;
193 pubkey = value;
210 sig.initVerify(pubkey);
266 baos.write(pubkey.getEncoded());
/external/chromium_org/third_party/openssl/openssl/crypto/ec/
H A Dec_pmeth.c174 const EC_POINT *pubkey = NULL; local
189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey->pkey.ec, 0);
H A Dec_ameth.c190 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
198 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
/external/openssl/crypto/ec/
H A Dec_pmeth.c174 const EC_POINT *pubkey = NULL; local
189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey->pkey.ec, 0);
H A Dec_ameth.c190 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
198 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
/external/chromium_org/third_party/openssl/openssl/crypto/dh/
H A Ddh_ameth.c71 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
83 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
181 * is explcitly included and the pubkey must be recalculated.
/external/openssl/crypto/dh/
H A Ddh_ameth.c71 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
83 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
181 * is explcitly included and the pubkey must be recalculated.
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dwps_attr_build.c23 struct wpabuf *pubkey; local
39 pubkey = wpabuf_dup(wps->wps->dh_pubkey);
55 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey);
56 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey);
61 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
62 pubkey = wpabuf_zeropad(pubkey, 192);
64 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) {
67 wpabuf_free(pubkey);
71 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey);
367 wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, const struct wpabuf *pubkey, const u8 *dev_pw, size_t dev_pw_len) argument
[all...]
/external/wpa_supplicant_8/src/wps/
H A Dwps_attr_build.c23 struct wpabuf *pubkey; local
39 pubkey = wpabuf_dup(wps->wps->dh_pubkey);
55 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey);
56 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey);
61 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
62 pubkey = wpabuf_zeropad(pubkey, 192);
64 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) {
67 wpabuf_free(pubkey);
71 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey);
367 wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, const struct wpabuf *pubkey, const u8 *dev_pw, size_t dev_pw_len) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dwps_attr_build.c23 struct wpabuf *pubkey; local
39 pubkey = wpabuf_dup(wps->wps->dh_pubkey);
55 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey);
56 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey);
61 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
62 pubkey = wpabuf_zeropad(pubkey, 192);
64 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) {
67 wpabuf_free(pubkey);
71 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey);
367 wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, const struct wpabuf *pubkey, const u8 *dev_pw, size_t dev_pw_len) argument
[all...]
/external/chromium_org/third_party/openssl/openssl/crypto/dsa/
H A Ddsa_ameth.c69 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
81 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
187 * AlgorithmIdentifier the pubkey must be recalculated.
/external/chromium_org/third_party/openssl/openssl/crypto/rsa/
H A Drsa_ameth.c85 static int rsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
90 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, NULL, pubkey))
/external/openssl/crypto/dsa/
H A Ddsa_ameth.c69 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
81 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey))
187 * AlgorithmIdentifier the pubkey must be recalculated.
/external/openssl/crypto/rsa/
H A Drsa_ameth.c85 static int rsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
90 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, NULL, pubkey))
/external/dropbear/libtomcrypt/src/headers/
H A Dtomcrypt_pk.h203 ecc_point pubkey; member in struct:__anon17717

Completed in 3189 milliseconds

12