Searched defs:pkey (Results 1 - 25 of 181) sorted by relevance

12345678

/external/chromium_org/net/base/
H A Dkeygen_handler_openssl.cc21 EVP_PKEY* pkey = key->key(); local
24 OpenSSLPrivateKeyStore::StoreKeyPair(url_, pkey);
30 NETSCAPE_SPKI_set_pubkey(spki.get(), pkey);
33 NETSCAPE_SPKI_sign(spki.get(), pkey, EVP_md5());
H A Dopenssl_private_key_store_android.cc19 EVP_PKEY* pkey) {
27 int public_len = i2d_PUBKEY(pkey, &public_key);
34 pkcs8(EVP_PKEY2PKCS8(pkey));
18 StoreKeyPair(const GURL& url, EVP_PKEY* pkey) argument
H A Dopenssl_private_key_store_memory.cc38 bool StoreKeyPair(EVP_PKEY* pkey) { argument
39 EVP_PKEY_dup(pkey);
41 keys_.push_back(pkey);
45 bool HasPrivateKey(EVP_PKEY* pkey) { argument
49 if (EVP_PKEY_cmp(*it, pkey) == 1)
65 EVP_PKEY* pkey) {
66 return MemoryKeyPairStore::GetInstance()->StoreKeyPair(pkey);
64 StoreKeyPair(const GURL& url, EVP_PKEY* pkey) argument
/external/openssl/crypto/cmac/
H A Dcm_ameth.c64 static int cmac_size(const EVP_PKEY *pkey) argument
69 static void cmac_key_free(EVP_PKEY *pkey) argument
71 CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
/external/chromium_org/third_party/boringssl/src/crypto/x509/
H A Dx509_r2x.c67 X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) argument
103 if (!X509_sign(ret,pkey,EVP_md5()))
H A Dx509rset.c75 int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey) argument
78 return(X509_PUBKEY_set(&x->req_info->pubkey,pkey));
H A Dx509type.c62 int X509_certificate_type(X509 *x, EVP_PKEY *pkey) argument
69 if (pkey == NULL)
72 pk=pkey;
125 if(pkey==NULL) EVP_PKEY_free(pk);
H A Da_verify.c75 ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
84 if (!pkey)
100 if (!pkey->ameth || !pkey->ameth->item_verify)
105 ret = pkey->ameth->item_verify(&ctx, it, asn, a,
106 signature, pkey);
127 if (ameth == NULL || ameth->pkey_id != pkey->ameth->pkey_id)
133 if (!EVP_DigestVerifyInit(&ctx, NULL, type, NULL, pkey))
74 ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey) argument
H A Dx509_set.c141 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey) argument
144 return(X509_PUBKEY_set(&(x->cert_info->key),pkey));
H A Dx509spki.c61 int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey) argument
64 return(X509_PUBKEY_set(&(x->spkac->pubkey),pkey));
/external/openssl/crypto/x509/
H A Dx509_r2x.c68 X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) argument
104 if (!X509_sign(ret,pkey,EVP_md5()))
H A Dx509rset.c78 int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey) argument
81 return(X509_PUBKEY_set(&x->req_info->pubkey,pkey));
H A Dx509type.c65 int X509_certificate_type(X509 *x, EVP_PKEY *pkey) argument
72 if (pkey == NULL)
75 pk=pkey;
128 if(pkey==NULL) EVP_PKEY_free(pk);
H A Dx509_set.c143 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey) argument
146 return(X509_PUBKEY_set(&(x->cert_info->key),pkey));
H A Dx509spki.c63 int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey) argument
66 return(X509_PUBKEY_set(&(x->spkac->pubkey),pkey));
/external/chromium_org/third_party/boringssl/src/crypto/evp/
H A Dp_hmac_asn1.c66 static int hmac_size(const EVP_PKEY *pkey) { return EVP_MAX_MD_SIZE; } argument
68 static void hmac_key_free(EVP_PKEY *pkey) { argument
69 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr;
78 static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) { argument
H A Dexample_sign.c101 EVP_PKEY *pkey = NULL; local
114 pkey = EVP_PKEY_new();
116 if (pkey == NULL ||
117 !EVP_PKEY_set1_RSA(pkey, rsa) ||
118 EVP_DigestSignInit(&md_ctx, NULL, EVP_sha256(), NULL, pkey) != 1 ||
149 if (pkey) {
150 EVP_PKEY_free(pkey);
164 EVP_PKEY *pkey = NULL; local
175 pkey = EVP_PKEY_new();
176 if (pkey
[all...]
/external/openssl/crypto/asn1/
H A Dt_spki.c75 EVP_PKEY *pkey; local
83 pkey = X509_PUBKEY_get(spki->spkac->pubkey);
84 if(!pkey) BIO_printf(out, " Unable to load public key\n");
87 EVP_PKEY_print_public(out, pkey, 4, NULL);
88 EVP_PKEY_free(pkey);
/external/chromium_org/content/child/webcrypto/openssl/
H A Drsa_ssa_openssl.cc23 EVP_PKEY** pkey,
25 *pkey = AsymKeyOpenSsl::Cast(key)->key();
22 GetPKeyAndDigest(const blink::WebCryptoKey& key, EVP_PKEY** pkey, const EVP_MD** digest) argument
/external/chromium_org/net/ssl/
H A Dopenssl_client_key_store_unittest.cc18 int EVP_PKEY_get_refcount(EVP_PKEY* pkey) { argument
19 return pkey->references;
62 crypto::ScopedEVP_PKEY pkey = store_->FetchClientCertPrivateKey(cert_1.get()); local
63 ASSERT_FALSE(pkey.get());
77 crypto::ScopedEVP_PKEY pkey = store_->FetchClientCertPrivateKey(cert_1.get()); local
78 ASSERT_FALSE(pkey.get());
/external/google-tv-pairing-protocol/cpp/tests/polo/util/
H A Dcertificateutiltest.cc54 EVP_PKEY* pkey = EVP_PKEY_new(); local
76 EVP_PKEY_assign_RSA(pkey, rsa);
82 X509_set_pubkey(x509, pkey);
92 X509_sign(x509, pkey, EVP_sha256());
97 EVP_PKEY_free(pkey);
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing"); local
137 ASSERT_TRUE(pkey);
139 RSA* rsa = EVP_PKEY_get1_RSA(pkey);
142 EVP_PKEY_free(pkey);
147 EVP_PKEY* pkey local
166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); local
173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); local
[all...]
/external/openssl/apps/
H A Dpkeyparam.c74 EVP_PKEY *pkey=NULL; local
178 pkey = PEM_read_bio_Parameters(in, NULL);
179 if (!pkey)
187 PEM_write_bio_Parameters(out,pkey);
190 EVP_PKEY_print_params(out, pkey, 0, NULL);
195 EVP_PKEY_free(pkey);
/external/openssl/crypto/evp/
H A Dp_verify.c66 unsigned int siglen, EVP_PKEY *pkey)
84 pkctx = EVP_PKEY_CTX_new(pkey, NULL);
101 if (pkey->type == v)
119 sigbuf,siglen,pkey->pkey.ptr));
65 EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey) argument
/external/openssl/crypto/hmac/
H A Dhm_ameth.c70 static int hmac_size(const EVP_PKEY *pkey) argument
75 static void hmac_key_free(EVP_PKEY *pkey) argument
77 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr;
87 static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument
106 static int old_hmac_decode(EVP_PKEY *pkey, argument
113 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, os);
117 static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
120 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey
[all...]
/external/openssl/crypto/pem/
H A Dpem_sign.c79 EVP_PKEY *pkey)
85 m=(unsigned char *)OPENSSL_malloc(EVP_PKEY_size(pkey)+2);
92 if (EVP_SignFinal(ctx,m,&m_len,pkey) <= 0) goto err;
78 PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey) argument

Completed in 2249 milliseconds

12345678