Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 25 of 56) sorted by relevance

123

/external/chromium/crypto/
Drsa_private_key_mac.cc34 result->public_key(), CSSM_KEYUSE_SIGN, in Create()
119 CSSM_KEY* public_key = result->public_key(); in CreateFromPrivateKeyInfo() local
121 public_key->KeyData.Data = reinterpret_cast<uint8*>(CSSMMalloc(size)); in CreateFromPrivateKeyInfo()
122 if (!public_key->KeyData.Data) { in CreateFromPrivateKeyInfo()
126 memcpy(public_key->KeyData.Data, &public_key_data.front(), size); in CreateFromPrivateKeyInfo()
127 public_key->KeyData.Length = size; in CreateFromPrivateKeyInfo()
128 public_key->KeyHeader.Format = CSSM_KEYBLOB_RAW_FORMAT_PKCS1; in CreateFromPrivateKeyInfo()
129 public_key->KeyHeader.HeaderVersion = CSSM_KEYHEADER_VERSION; in CreateFromPrivateKeyInfo()
130 public_key->KeyHeader.BlobType = CSSM_KEYBLOB_RAW; in CreateFromPrivateKeyInfo()
131 public_key->KeyHeader.AlgorithmId = CSSM_ALGID_RSA; in CreateFromPrivateKeyInfo()
[all …]
Drsa_private_key_nss_unittest.cc35 std::vector<uint8> public_key; in TEST_F() local
36 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); in TEST_F()
39 crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key)); in TEST_F()
48 std::vector<uint8> public_key; in TEST_F() local
49 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); in TEST_F()
61 EXPECT_EQ(NULL, crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key)); in TEST_F()
Dsignature_verifier_nss.cc40 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); in VerifyInit() local
42 if (!public_key) in VerifyInit()
47 SECKEY_DestroyPublicKey(public_key); in VerifyInit()
60 SECKEY_DestroyPublicKey(public_key); in VerifyInit()
70 vfy_context_ = VFY_CreateContextWithAlgorithmID(public_key, &sig, in VerifyInit()
73 SECKEY_DestroyPublicKey(public_key); // Done with public_key. in VerifyInit()
Dsignature_verifier_openssl.cc20 ScopedOpenSSL<EVP_PKEY, EVP_PKEY_free> public_key; member
59 verify_context_->public_key.reset(d2i_PUBKEY_bio(bio.get(), NULL)); in VerifyInit()
60 if (!verify_context_->public_key.get()) in VerifyInit()
82 verify_context_->public_key.get()); in VerifyFinal()
Drsa_private_key.h216 SECKEYPublicKeyStr* public_key() { return public_key_; } in public_key() function
222 CSSM_KEY_PTR public_key() { return &public_key_; } in public_key() function
/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_shared_secret.c34 int ecc_shared_secret(ecc_key *private_key, ecc_key *public_key, in ecc_shared_secret() argument
43 LTC_ARGCHK(public_key != NULL); in ecc_shared_secret()
52 if (ltc_ecc_is_valid_idx(private_key->idx) == 0 || ltc_ecc_is_valid_idx(public_key->idx) == 0) { in ecc_shared_secret()
56 if (XSTRCMP(private_key->dp->name, public_key->dp->name) != 0) { in ecc_shared_secret()
72 …if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) … in ecc_shared_secret()
/external/openssl/crypto/asn1/
Dx_pubkey.c85 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING)
145 if (key->public_key == NULL) goto error; in X509_PUBKEY_get()
356 if (pub->public_key->data) in X509_PUBKEY_set0_param()
357 OPENSSL_free(pub->public_key->data); in X509_PUBKEY_set0_param()
358 pub->public_key->data = penc; in X509_PUBKEY_set0_param()
359 pub->public_key->length = penclen; in X509_PUBKEY_set0_param()
361 pub->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); in X509_PUBKEY_set0_param()
362 pub->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; in X509_PUBKEY_set0_param()
376 *pk = pub->public_key->data; in X509_PUBKEY_get0_param()
377 *ppklen = pub->public_key->length; in X509_PUBKEY_get0_param()
/external/chromium/chrome/browser/chromeos/login/
Downer_key_utils_unittest.cc54 std::vector<uint8> public_key; in TEST_F() local
55 ASSERT_TRUE(pair->ExportPublicKey(&public_key)); in TEST_F()
61 for (pubkey_it = public_key.begin(), disk_it = from_disk.begin(); in TEST_F()
62 pubkey_it < public_key.end(); in TEST_F()
Downer_key_utils.cc47 const std::vector<uint8> public_key);
136 const std::vector<uint8> public_key) { in Verify() argument
140 &public_key[0], public_key.size())) { in Verify()
Dmock_owner_key_utils.h29 const std::vector<uint8> public_key));
Downer_key_utils.h57 const std::vector<uint8> public_key) = 0;
/external/chromium/net/base/
Dkeygen_handler_mac.cc106 SecKeyRef public_key = NULL; in GenKeyAndSignChallenge() local
129 &public_key, &private_key); in GenKeyAndSignChallenge()
135 err = SecKeychainItemExport(public_key, kSecFormatBSAFE, 0, NULL, in GenKeyAndSignChallenge()
201 if (public_key) in GenKeyAndSignChallenge()
202 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(public_key)); in GenKeyAndSignChallenge()
213 if (public_key) in GenKeyAndSignChallenge()
214 CFRelease(public_key); in GenKeyAndSignChallenge()
Dopenssl_private_key_store.h45 virtual EVP_PKEY* FetchPrivateKey(EVP_PKEY* public_key) = 0;
Ddnssec_keyset.cc193 base::StringPiece public_key, in VerifySignature() argument
207 spki_der.data = (uint8*) public_key.data(); in VerifySignature()
208 spki_der.len = public_key.size(); in VerifySignature()
Ddnssec_keyset.h50 base::StringPiece public_key,
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_shared_secret.c30 dsa_key *public_key, in dsa_shared_secret() argument
38 LTC_ARGCHK(public_key != NULL); in dsa_shared_secret()
47 if ((err = mp_exptmod(base, private_key, public_key->p, res)) != CRYPT_OK) { in dsa_shared_secret()
/external/chromium/chrome/browser/extensions/
Dextension_creator.cc196 std::vector<uint8> public_key; in WriteCRX() local
197 if (!private_key->ExportPublicKey(&public_key)) { in WriteCRX()
207 header.key_size = public_key.size(); in WriteCRX()
214 if (fwrite(&public_key.front(), sizeof(uint8), public_key.size(), in WriteCRX()
215 crx_handle.get()) != public_key.size()) { in WriteCRX()
Dconvert_user_script_unittest.cc35 extension->public_key()); in TEST()
75 extension->public_key()); in TEST()
Dconvert_web_app_unittest.cc120 extension->public_key()); in TEST()
163 extension->public_key()); in TEST()
/external/openssl/crypto/dh/
Ddh_ameth.c79 ASN1_INTEGER *public_key = NULL; in dh_pub_decode() local
103 if (!(public_key=d2i_ASN1_INTEGER(NULL, &p, pklen))) in dh_pub_decode()
110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) in dh_pub_decode()
116 ASN1_INTEGER_free(public_key); in dh_pub_decode()
121 if (public_key) in dh_pub_decode()
122 ASN1_INTEGER_free(public_key); in dh_pub_decode()
/external/openssl/crypto/x509v3/
Dv3_skey.c124 pk = ctx->subject_req->req_info->pubkey->public_key; in s2i_skey_id()
125 else pk = ctx->subject_cert->cert_info->key->public_key; in s2i_skey_id()
/external/openssl/crypto/dsa/
Ddsa_ameth.c77 ASN1_INTEGER *public_key = NULL; in dsa_pub_decode() local
113 if (!(public_key=d2i_ASN1_INTEGER(NULL, &p, pklen))) in dsa_pub_decode()
119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) in dsa_pub_decode()
125 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
130 if (public_key) in dsa_pub_decode()
131 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
/external/chromium/chrome/common/remoting/
Dchromoting_host_info.h19 std::string public_key; member
/external/chromium/chrome/common/
Dservice_messages.h17 IPC_STRUCT_TRAITS_MEMBER(public_key)
/external/wpa_supplicant_8/src/tls/
Dx509v3.h58 u8 *public_key; member

123