HomeSort by relevance Sort by last modified time
    Searched refs:pkey (Results 51 - 75 of 146) sorted by null

1 23 4 5 6

  /external/openssl/crypto/x509/
x509spki.c 63 int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey)
66 return(X509_PUBKEY_set(&(x->spkac->pubkey),pkey));
x_all.c 91 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
95 x->sig_alg, x->signature, x->cert_info,pkey,md));
98 int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md)
101 x->signature, x->req_info,pkey,md));
104 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md)
108 x->sig_alg, x->signature, x->crl,pkey,md));
111 int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md)
114 x->signature, x->spkac,pkey,md));
452 int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey)
454 return ASN1_i2d_fp_of(EVP_PKEY,i2d_PrivateKey,fp,pkey);
    [all...]
x509.h 164 EVP_PKEY *pkey; member in struct:X509_pubkey_st
592 ASN1_TYPE *pkey; /* Should be OCTET STRING but some are broken */ member in struct:pkcs8_priv_key_info_st
656 int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey);
662 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
663 int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);
664 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);
665 int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);
712 int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);
714 int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
751 int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey);
    [all...]
x509_set.c 143 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey)
146 return(X509_PUBKEY_set(&(x->cert_info->key),pkey));
  /external/openssl/apps/
rsautl.c 99 EVP_PKEY *pkey = NULL; local
201 pkey = load_key(bio_err, keyfile, keyform, 0,
206 pkey = load_pubkey(bio_err, keyfile, keyform, 0,
214 pkey = X509_get_pubkey(x);
220 if(!pkey) {
224 rsa = EVP_PKEY_get1_RSA(pkey);
225 EVP_PKEY_free(pkey);
dsa.c 271 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);
rsa.c 269 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);
pkeyutl.c 417 EVP_PKEY *pkey = NULL; local
437 pkey = load_key(bio_err, keyfile, keyform, 0,
442 pkey = load_pubkey(bio_err, keyfile, keyform, 0,
451 pkey = X509_get_pubkey(x);
458 *pkeysize = EVP_PKEY_size(pkey);
460 if (!pkey)
463 ctx = EVP_PKEY_CTX_new(pkey, e);
465 EVP_PKEY_free(pkey);
req.c 128 static int make_REQ(X509_REQ *req,EVP_PKEY *pkey,char *dn,int mutlirdn,
169 EVP_PKEY *pkey=NULL; local
612 pkey = load_key(bio_err, keyfile, keyform, 0, passin, e,
614 if (!pkey)
629 if (newreq && (pkey == NULL))
690 if (EVP_PKEY_keygen(genctx, &pkey) <= 0)
743 if (!PEM_write_bio_PrivateKey(out,pkey,cipher,
793 if (pkey == NULL)
807 i=make_REQ(req,pkey,subj,multirdn,!x509, chtype);
862 if (!(i=X509_sign(x509ss,pkey,digest))
    [all...]
  /external/openssl/crypto/asn1/
ameth_lib.c 281 const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(EVP_PKEY *pkey)
283 return pkey->ameth;
397 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent,
413 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,
422 int (*param_decode)(EVP_PKEY *pkey,
424 int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder),
428 int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent,
440 void (*pkey_free)(EVP_PKEY *pkey))
446 int (*pkey_ctrl)(EVP_PKEY *pkey, int op,
t_req.c 97 EVP_PKEY *pkey; local
145 pkey=X509_REQ_get_pubkey(x);
146 if (pkey == NULL)
153 EVP_PKEY_print_public(bp, pkey, 16, NULL);
154 EVP_PKEY_free(pkey);
  /external/openssl/crypto/hmac/
hm_pmeth.c 66 /* HMAC pkey context structure */
127 static int pkey_hmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
136 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, hkey);
194 key = (ASN1_OCTET_STRING *)ctx->pkey->pkey.ptr;
  /external/wpa_supplicant/
crypto_gnutls.c 41 u8 pkey[8], next, tmp; local
48 pkey[i] = (tmp >> i) | next | 1;
51 pkey[i] = next | 1;
54 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8));
  /external/wpa_supplicant_8/src/crypto/
crypto_nss.c 60 u8 pkey[8], next, tmp; local
67 pkey[i] = (tmp >> i) | next | 1;
70 pkey[i] = next | 1;
79 item.data = pkey;
  /external/openssl/ssl/
s3_clnt.c 1052 EVP_PKEY *pkey=NULL; local
1154 pkey=X509_get_pubkey(x);
1162 printf("pkey,x = %p, %p\n", pkey,x);
1163 printf("ssl_cert_type(x,pkey) = %d\n", ssl_cert_type(x,pkey));
1168 if (need_cert && ((pkey == NULL) || EVP_PKEY_missing_parameters(pkey)))
1177 i=ssl_cert_type(x,pkey);
1223 EVP_PKEY_free(pkey);
1238 EVP_PKEY *pkey=NULL; local
2076 EVP_PKEY *pkey=NULL; local
2750 EVP_PKEY *pkey; local
2868 EVP_PKEY *pkey=NULL; local
2947 EVP_PKEY *pkey=NULL; local
    [all...]
d1_clnt.c 788 EVP_PKEY *pkey=NULL; local
821 pkey=X509_get_pubkey(s->session->sess_cert->peer_pkeys[SSL_PKEY_RSA_ENC].x509);
822 if ((pkey == NULL) ||
823 (pkey->type != EVP_PKEY_RSA) ||
824 (pkey->pkey.rsa == NULL))
829 rsa=pkey->pkey.rsa;
830 EVP_PKEY_free(pkey);
1105 (srvr_pub_pkey->pkey.ec == NULL)
1368 EVP_PKEY *pkey; local
1464 EVP_PKEY *pkey=NULL; local
    [all...]
s2_clnt.c 795 EVP_PKEY *pkey=NULL; local
806 i=s->ctx->client_cert_cb(s,&(x509),&(pkey));
816 if ((i == 1) && (pkey != NULL) && (x509 != NULL))
820 !SSL_use_PrivateKey(s,pkey))
825 EVP_PKEY_free(pkey);
830 if (pkey != NULL) EVP_PKEY_free(pkey);
1028 EVP_PKEY *pkey=NULL; local
1070 pkey=X509_get_pubkey(x509);
1072 if (pkey == NULL
1096 EVP_PKEY *pkey=NULL; local
    [all...]
s3_srvr.c 1476 EVP_PKEY *pkey; local
1995 EVP_PKEY *pkey=NULL; local
2735 EVP_PKEY *pkey=NULL; local
    [all...]
  /external/e2fsprogs/lib/ext2fs/
tdbtool.c 398 static void first_record(TDB_CONTEXT *the_tdb, TDB_DATA *pkey)
401 *pkey = tdb_firstkey(the_tdb);
403 dbuf = tdb_fetch(the_tdb, *pkey);
406 print_rec(the_tdb, *pkey, dbuf, NULL);
410 static void next_record(TDB_CONTEXT *the_tdb, TDB_DATA *pkey)
413 *pkey = tdb_nextkey(the_tdb, *pkey);
415 dbuf = tdb_fetch(the_tdb, *pkey);
419 print_rec(the_tdb, *pkey, dbuf, NULL);
  /external/openssl/crypto/pkcs7/
pk7_smime.c 68 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
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)
550 if(cert && !X509_check_private_key(cert, pkey)) {
556 if(!(tmpmem = PKCS7_dataDecode(p7, pkey, NULL, cert))) {
pk7_doit.c 145 EVP_PKEY *pkey = NULL; local
150 pkey = X509_get_pubkey(ri->cert);
152 if (!pkey)
155 pctx = EVP_PKEY_CTX_new(pkey, NULL);
189 if (pkey)
190 EVP_PKEY_free(pkey);
201 PKCS7_RECIP_INFO *ri, EVP_PKEY *pkey)
209 pctx = EVP_PKEY_CTX_new(pkey, NULL);
413 BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
544 ri, pkey) > 0
976 EVP_PKEY *pkey; local
    [all...]
dec.c 77 EVP_PKEY *pkey; local
127 if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,NULL)) == NULL)
152 p7bio=PKCS7_dataDecode(p7,pkey,detached,x509);
enc.c 120 if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL)) == NULL) goto err;
124 if (PKCS7_add_signature(p7,x509,pkey,EVP_sha1()) == NULL) goto err;
  /external/openssl/include/openssl/
x509.h 164 EVP_PKEY *pkey; member in struct:X509_pubkey_st
592 ASN1_TYPE *pkey; /* Should be OCTET STRING but some are broken */ member in struct:pkcs8_priv_key_info_st
656 int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey);
662 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
663 int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);
664 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);
665 int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);
712 int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);
714 int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
751 int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey);
    [all...]
  /external/openssl/crypto/pem/
pem_seal.c 86 j=RSA_size(pubk[i]->pkey.rsa);
109 RSA_size(pubk[i]->pkey.rsa));
157 i=RSA_size(priv->pkey.rsa);

Completed in 342 milliseconds

1 23 4 5 6