/external/chromium/crypto/ |
D | rsa_private_key_mac.cc | 34 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 …]
|
D | rsa_private_key_nss_unittest.cc | 35 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()
|
D | signature_verifier_nss.cc | 40 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()
|
D | signature_verifier_openssl.cc | 20 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()
|
D | rsa_private_key.h | 216 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/ |
D | ecc_shared_secret.c | 34 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/ |
D | x_pubkey.c | 85 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/ |
D | owner_key_utils_unittest.cc | 54 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()
|
D | owner_key_utils.cc | 47 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()
|
D | mock_owner_key_utils.h | 29 const std::vector<uint8> public_key));
|
D | owner_key_utils.h | 57 const std::vector<uint8> public_key) = 0;
|
/external/chromium/net/base/ |
D | keygen_handler_mac.cc | 106 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()
|
D | openssl_private_key_store.h | 45 virtual EVP_PKEY* FetchPrivateKey(EVP_PKEY* public_key) = 0;
|
D | dnssec_keyset.cc | 193 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()
|
D | dnssec_keyset.h | 50 base::StringPiece public_key,
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
D | dsa_shared_secret.c | 30 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/ |
D | extension_creator.cc | 196 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()
|
D | convert_user_script_unittest.cc | 35 extension->public_key()); in TEST() 75 extension->public_key()); in TEST()
|
D | convert_web_app_unittest.cc | 120 extension->public_key()); in TEST() 163 extension->public_key()); in TEST()
|
/external/openssl/crypto/dh/ |
D | dh_ameth.c | 79 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/ |
D | v3_skey.c | 124 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/ |
D | dsa_ameth.c | 77 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/ |
D | chromoting_host_info.h | 19 std::string public_key; member
|
/external/chromium/chrome/common/ |
D | service_messages.h | 17 IPC_STRUCT_TRAITS_MEMBER(public_key)
|
/external/wpa_supplicant_8/src/tls/ |
D | x509v3.h | 58 u8 *public_key; member
|