Searched defs:pkey (Results 51 - 75 of 181) sorted by relevance

12345678

/external/chromium_org/third_party/boringssl/src/crypto/pem/
H A Dpem_pkey.c168 static int set_pkey_type_from_str(EVP_PKEY *pkey, const char *name, size_t len) { argument
173 return EVP_PKEY_set_type(pkey, nid);
/external/chromium_org/third_party/boringssl/src/ssl/
H A Dssl_rsa.c70 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
155 EVP_PKEY *pkey; local
168 if ((pkey=EVP_PKEY_new()) == NULL)
175 EVP_PKEY_assign_RSA(pkey,rsa);
177 ret=ssl_set_pkey(ssl->cert,pkey);
178 EVP_PKEY_free(pkey);
182 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey) argument
186 i=ssl_cert_type(NULL,pkey);
197 EVP_PKEY_copy_parameters(pktmp,pkey);
203 if (!EVP_PKEY_is_opaque(pkey)
287 SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) argument
310 EVP_PKEY *pkey=NULL; local
357 EVP_PKEY *pkey; local
388 EVP_PKEY *pkey; local
508 EVP_PKEY *pkey; local
600 SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey) argument
620 EVP_PKEY *pkey=NULL; local
668 EVP_PKEY *pkey; local
[all...]
H A Ds3_both.c501 int ssl3_cert_verify_hash(SSL *s, uint8_t *out, size_t *out_len, const EVP_MD **out_md, EVP_PKEY *pkey) argument
529 else if (pkey->type == EVP_PKEY_RSA)
541 else if (pkey->type == EVP_PKEY_EC)
556 int ssl_cert_type(X509 *x, EVP_PKEY *pkey) argument
561 if (pkey == NULL)
564 pk=pkey;
578 if(!pkey) EVP_PKEY_free(pk);
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_testlib.cc50 static pthread_key_t pkey; member in namespace:__anon19634
54 pthread_setspecific(pkey, (void*)((uptr)v + 1));
64 pthread_key_create(&pkey, thread_dtor);
67 pthread_setspecific(pkey, (void*)1);
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLX509CRL.java196 private void verifyOpenSSL(OpenSSLKey pkey) throws CRLException, NoSuchAlgorithmException, argument
198 NativeCrypto.X509_CRL_verify(mContext, pkey.getPkeyContext());
227 OpenSSLKey pkey = ((OpenSSLKeyHolder) key).getOpenSSLKey();
228 verifyOpenSSL(pkey);
/external/kernel-headers/original/uapi/rdma/
H A Dib_user_sa.h63 __be16 pkey; member in struct:ib_user_path_rec
/external/openssl/apps/
H A Ddsa.c271 EVP_PKEY *pkey; local
274 pkey = load_pubkey(bio_err, infile, informat, 1,
277 pkey = load_key(bio_err, infile, informat, 1,
280 if (pkey)
282 dsa = EVP_PKEY_get1_DSA(pkey);
283 EVP_PKEY_free(pkey);
H A Dgenpkey.c85 EVP_PKEY *pkey=NULL; local
249 if (EVP_PKEY_paramgen(ctx, &pkey) <= 0)
258 if (EVP_PKEY_keygen(ctx, &pkey) <= 0)
267 rv = PEM_write_bio_Parameters(out, pkey);
269 rv = PEM_write_bio_PrivateKey(out, pkey, cipher, NULL, 0,
272 rv = i2d_PrivateKey_bio(out, pkey);
288 rv = EVP_PKEY_print_params(out, pkey, 0, NULL);
290 rv = EVP_PKEY_print_private(out, pkey, 0, NULL);
302 if (pkey)
303 EVP_PKEY_free(pkey);
319 EVP_PKEY *pkey = NULL; local
[all...]
H A Dpkcs8.c85 EVP_PKEY *pkey=NULL; local
278 pkey = load_key(bio_err, infile, informat, 1,
280 if (!pkey)
282 if (!(p8inf = EVP_PKEY2PKCS8_broken(pkey, p8_broken)))
382 if (!(pkey = EVP_PKCS82PKEY(p8inf)))
417 PEM_write_bio_PrivateKey(out, pkey, NULL, NULL, 0, NULL, passout);
419 i2d_PrivateKey_bio(out, pkey);
430 EVP_PKEY_free(pkey);
H A Drsa.c269 EVP_PKEY *pkey; local
286 pkey = load_pubkey(bio_err, infile, tmpformat, 1,
290 pkey = load_key(bio_err, infile,
295 if (pkey != NULL)
296 rsa = EVP_PKEY_get1_RSA(pkey);
297 EVP_PKEY_free(pkey);
/external/openssl/crypto/asn1/
H A Dn_pkey.c127 NETSCAPE_PKEY *pkey = NULL; local
136 if ((pkey=NETSCAPE_PKEY_new()) == NULL) goto err;
138 pkey->version = 0;
140 pkey->algor->algorithm=OBJ_nid2obj(NID_rsaEncryption);
141 if ((pkey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err;
142 pkey->algor->parameter->type=V_ASN1_NULL;
150 pkey->private_key->length=rsalen;
152 pkeylen=i2d_NETSCAPE_PKEY(pkey,NULL);
165 NETSCAPE_PKEY_free(pkey);
178 pkey
289 NETSCAPE_PKEY *pkey=NULL; local
[all...]
/external/openssl/crypto/cmac/
H A Dcm_pmeth.c86 static int pkey_cmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
97 EVP_PKEY_assign(pkey, EVP_PKEY_CMAC, cmkey);
141 if (ctx->pkey && !CMAC_CTX_copy(ctx->data,
142 (CMAC_CTX *)ctx->pkey->pkey.ptr))
/external/openssl/crypto/dh/
H A Ddh_pmeth.c67 /* DH pkey context structure */
161 static int pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
180 EVP_PKEY_assign_DH(pkey, dh);
186 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
189 if (ctx->pkey == NULL)
197 EVP_PKEY_assign_DH(pkey, dh);
198 /* Note: if error return, pkey is freed by parent routine */
199 if (!EVP_PKEY_copy_parameters(pkey, ctx->pkey))
201 return DH_generate_key(pkey
[all...]
/external/openssl/crypto/dsa/
H A Ddsa_pmeth.c67 /* DSA pkey context structure */
126 DSA *dsa = ctx->pkey->pkey.dsa;
147 DSA *dsa = ctx->pkey->pkey.dsa;
241 static int pkey_dsa_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
260 EVP_PKEY_assign_DSA(pkey, dsa);
266 static int pkey_dsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
269 if (ctx->pkey == NULL)
277 EVP_PKEY_assign_DSA(pkey, ds
[all...]
/external/openssl/crypto/ec/
H A Dec_pmeth.c67 /* EC pkey context structure */
125 EC_KEY *ec = ctx->pkey->pkey.ec;
158 EC_KEY *ec = ctx->pkey->pkey.ec;
175 if (!ctx->pkey || !ctx->peerkey)
184 group = EC_KEY_get0_group(ctx->pkey->pkey.ec);
189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey
268 pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
289 pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
[all...]
/external/openssl/crypto/hmac/
H A Dhm_pmeth.c66 /* HMAC pkey context structure */
128 static int pkey_hmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
137 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, hkey);
197 key = (ASN1_OCTET_STRING *)ctx->pkey->pkey.ptr;
/external/openssl/crypto/pkcs7/
H A Dpk7_smime.c68 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, argument
86 if (pkey && !PKCS7_sign_add_signer(p7, signcert, pkey, NULL, flags))
162 EVP_PKEY *pkey, const EVP_MD *md,
167 if(!X509_check_private_key(signcert, pkey))
174 if (!(si = PKCS7_add_signature(p7,signcert,pkey, md)))
534 int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) argument
550 if(cert && !X509_check_private_key(cert, pkey)) {
556 if(!(tmpmem = PKCS7_dataDecode(p7, pkey, NULL, cert))) {
161 PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, EVP_PKEY *pkey, const EVP_MD *md, int flags) argument
/external/chromium_org/chrome/browser/devtools/device/usb/
H A Dandroid_rsa.cc233 RSAPublicKey pkey; local
234 pkey.len = kRSANumWords;
235 pkey.exponent = 65537; // Fixed public exponent
236 pkey.n0inv = 0 - ModInverse(n0, 0x100000000LL);
237 if (pkey.n0inv == 0)
247 pkey.n[i] = n[i];
248 pkey.rr[i] = rr[i];
256 std::string input(reinterpret_cast<char*>(&pkey), sizeof(pkey));
/external/chromium_org/net/test/
H A Dopenssl_helper.cc135 EVP_PKEY *pkey = PEM_read_bio_PrivateKey(key, NULL, NULL, NULL); local
136 if (!pkey) {
161 if (SSL_CTX_use_PrivateKey(ctx, pkey) <= 0) {
/external/chromium_org/third_party/boringssl/src/crypto/evp/
H A Devp.c93 static void free_it(EVP_PKEY *pkey) { argument
94 if (pkey->ameth && pkey->ameth->pkey_free) {
95 pkey->ameth->pkey_free(pkey);
96 pkey->pkey.ptr = NULL;
97 pkey->type = EVP_PKEY_NONE;
101 void EVP_PKEY_free(EVP_PKEY *pkey) { argument
102 if (pkey
120 EVP_PKEY_is_opaque(const EVP_PKEY *pkey) argument
149 EVP_PKEY_dup(EVP_PKEY *pkey) argument
173 EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) argument
180 EVP_PKEY_size(const EVP_PKEY *pkey) argument
187 EVP_PKEY_bits(EVP_PKEY *pkey) argument
194 EVP_PKEY_id(const EVP_PKEY *pkey) argument
246 EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) argument
254 EVP_PKEY_assign_RSA(EVP_PKEY *pkey, RSA *key) argument
258 EVP_PKEY_get1_RSA(EVP_PKEY *pkey) argument
267 EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) argument
275 EVP_PKEY_assign_DSA(EVP_PKEY *pkey, DSA *key) argument
279 EVP_PKEY_get1_DSA(EVP_PKEY *pkey) argument
288 EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) argument
296 EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) argument
300 EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) argument
309 EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) argument
317 EVP_PKEY_assign_DH(EVP_PKEY *pkey, DH *key) argument
321 EVP_PKEY_get1_DH(EVP_PKEY *pkey) argument
330 EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) argument
351 EVP_PKEY_set_type(EVP_PKEY *pkey, int type) argument
385 print_unsupported(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) argument
393 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
402 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
411 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
[all...]
H A Devp_ctx.c90 static EVP_PKEY_CTX *evp_pkey_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id) { argument
95 if (!pkey || !pkey->ameth) {
98 id = pkey->ameth->pkey_id;
121 if (pkey) {
122 ret->pkey = EVP_PKEY_dup(pkey);
135 EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) { argument
136 return evp_pkey_ctx_new(pkey, e, -1);
150 if (ctx->pkey) {
[all...]
H A Dp_ec.c170 EC_KEY *ec = ctx->pkey->pkey.ec;
196 EC_KEY *ec = ctx->pkey->pkey.ec;
214 if (!ctx->pkey || !ctx->peerkey) {
219 eckey = dctx->co_key ? dctx->co_key : ctx->pkey->pkey.ec;
227 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
365 static int pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { argument
380 EVP_PKEY_assign_EC_KEY(pkey, e
387 pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/x509/
H A Dt_x509.c105 EVP_PKEY *pkey=NULL; local
207 pkey=X509_get_pubkey(x);
208 if (pkey == NULL)
215 EVP_PKEY_print_public(bp, pkey, 16, NULL);
216 EVP_PKEY_free(pkey);
H A Dx509_cmp.c356 static int check_suite_b(EVP_PKEY *pkey, int sign_nid, unsigned long *pflags) argument
360 if (pkey && pkey->type == EVP_PKEY_EC)
361 grp = EC_KEY_get0_group(pkey->pkey.ec);
H A Dx509_req.c70 X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) argument
99 if (pkey != NULL)
101 if (!X509_REQ_sign(ret,pkey,md))

Completed in 4649 milliseconds

12345678