HomeSort by relevance Sort by last modified time
    Searched refs:pkey (Results 1 - 25 of 155) sorted by null

1 2 3 4 5 6 7

  /external/openssl/crypto/evp/
p_lib.c 85 int EVP_PKEY_bits(EVP_PKEY *pkey)
87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
88 return pkey->ameth->pkey_bits(pkey);
92 int EVP_PKEY_size(EVP_PKEY *pkey)
94 if (pkey && pkey->ameth && pkey->ameth->pkey_size
    [all...]
evp_pkey.c 70 EVP_PKEY *pkey = NULL; local
77 if (!(pkey = EVP_PKEY_new())) {
82 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid)))
90 if (pkey->ameth->priv_decode)
92 if (!pkey->ameth->priv_decode(pkey, p8))
105 return pkey;
108 EVP_PKEY_free (pkey);
112 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey)
114 return EVP_PKEY2PKCS8_broken(pkey, PKCS8_OK)
    [all...]
p_verify.c 66 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));
p_sign.c 79 EVP_PKEY *pkey)
97 size_t sltmp = (size_t)EVP_PKEY_size(pkey);
99 pkctx = EVP_PKEY_CTX_new(pkey, NULL);
119 if (pkey->type == v)
137 pkey->pkey.ptr));
  /external/openssl/crypto/cmac/
cm_ameth.c 64 static int cmac_size(const EVP_PKEY *pkey)
69 static void cmac_key_free(EVP_PKEY *pkey)
71 CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
  /external/openssl/crypto/hmac/
hm_ameth.c 70 static int hmac_size(const EVP_PKEY *pkey)
75 static void hmac_key_free(EVP_PKEY *pkey)
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)
106 static int old_hmac_decode(EVP_PKEY *pkey,
113 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, os);
117 static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder)
120 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr
    [all...]
  /external/openssl/crypto/asn1/
asn1_locl.h 86 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent,
91 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,
97 int (*param_decode)(EVP_PKEY *pkey,
99 int (*param_encode)(const EVP_PKEY *pkey, unsigned char **pder);
103 int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent,
110 void (*pkey_free)(EVP_PKEY *pkey);
111 int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2);
115 int (*old_priv_decode)(EVP_PKEY *pkey,
117 int (*old_priv_encode)(const EVP_PKEY *pkey, unsigned char **pder);
121 EVP_PKEY *pkey);
    [all...]
i2d_pu.c 80 return(i2d_RSAPublicKey(a->pkey.rsa,pp));
84 return(i2d_DSAPublicKey(a->pkey.dsa,pp));
88 return(i2o_ECPublicKey(a->pkey.ec, pp));
x_pubkey.c 78 EVP_PKEY_free(pubkey->pkey);
90 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
98 if (pkey->ameth)
100 if (pkey->ameth->pub_encode)
102 if (!pkey->ameth->pub_encode(pk, pkey))
139 if (key->pkey != NULL)
141 CRYPTO_add(&key->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
142 return key->pkey;
174 /* Check to see if another thread set key->pkey first *
    [all...]
p8_pkey.c 71 if (key->pkey->value.octet_string)
72 OPENSSL_cleanse(key->pkey->value.octet_string->data,
73 key->pkey->value.octet_string->length);
81 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, pkey, ASN1_ANY),
112 ASN1_TYPE_set(priv->pkey, pmtype, oct);
131 if(p8->pkey->type == V_ASN1_OCTET_STRING)
136 *pk = p8->pkey->value.octet_string->data;
137 *ppklen = p8->pkey->value.octet_string->length;
140 else if (p8->pkey->type == V_ASN1_SEQUENCE)
145 *pk = p8->pkey->value.sequence->data
    [all...]
t_spki.c 75 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/openssl/crypto/dh/
dh_ameth.c 66 static void int_dh_free(EVP_PKEY *pkey)
68 DH_free(pkey->pkey.dh);
71 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
117 EVP_PKEY_assign_DH(pkey, dh);
129 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
139 dh=pkey->pkey.dh;
184 static int dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
223 EVP_PKEY_assign_DH(pkey, dh)
    [all...]
dh_pmeth.c 67 /* DH pkey context structure */
161 static int pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
180 EVP_PKEY_assign_DH(pkey, dh);
186 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
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->pkey.dh)
    [all...]
  /external/openssl/crypto/ec/
ec_ameth.c 103 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
105 EC_KEY *ec_key = pkey->pkey.ec;
190 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
217 EVP_PKEY_assign_EC_KEY(pkey, eckey);
229 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
230 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec),
231 *pb = EC_KEY_get0_public_key(b->pkey.ec);
240 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
301 EVP_PKEY_assign_EC_KEY(pkey, eckey)
    [all...]
ec_pmeth.c 67 /* 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->pkey.ec, 0)
    [all...]
  /external/openssl/crypto/dsa/
dsa_ameth.c 69 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
126 EVP_PKEY_assign_DSA(pkey, dsa);
138 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
146 dsa=pkey->pkey.dsa;
147 if (pkey->save_parameters && dsa->p && dsa->q && dsa->g)
190 static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
283 EVP_PKEY_assign_DSA(pkey, dsa);
303 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey)
318 params->length = i2d_DSAparams(pkey->pkey.dsa, &params->data)
    [all...]
  /external/openssl/crypto/pkcs12/
p12_kiss.c 66 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
69 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
72 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
76 * or it should point to a valid STACK structure. pkey and cert can be
80 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
93 if(pkey)
94 *pkey = NULL;
127 if (!parse_pk12 (p12, pass, -1, pkey, ocerts))
135 if (pkey && *pkey && cert && !*cert
    [all...]
  /external/chromium/net/base/
keygen_handler_openssl.cc 20 EVP_PKEY* pkey = key->key(); local
23 OpenSSLPrivateKeyStore::GetInstance()->StorePrivateKey(url_, pkey);
29 NETSCAPE_SPKI_set_pubkey(spki.get(), pkey);
32 NETSCAPE_SPKI_sign(spki.get(), pkey, EVP_md5());
openssl_memory_private_key_store.cc 36 virtual bool StorePrivateKey(const GURL& url, EVP_PKEY* pkey) {
37 CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
39 keys_.push_back(pkey);
43 virtual EVP_PKEY* FetchPrivateKey(EVP_PKEY* pkey) {
47 if (EVP_PKEY_cmp(*it, pkey) == 1)
  /external/openssl/ssl/
ssl_rsa.c 68 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
154 EVP_PKEY *pkey; local
167 if ((pkey=EVP_PKEY_new()) == NULL)
174 EVP_PKEY_assign_RSA(pkey,rsa);
176 ret=ssl_set_pkey(ssl->cert,pkey);
177 EVP_PKEY_free(pkey);
182 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
186 i=ssl_cert_type(NULL,pkey);
197 EVP_PKEY_copy_parameters(pktmp,pkey);
204 if ((pkey->type == EVP_PKEY_RSA) &
318 EVP_PKEY *pkey=NULL; local
365 EVP_PKEY *pkey; local
396 EVP_PKEY *pkey; local
524 EVP_PKEY *pkey; local
637 EVP_PKEY *pkey=NULL; local
685 EVP_PKEY *pkey; local
    [all...]
  /external/openssl/crypto/pem/
pem_sign.c 79 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;
  /external/openssl/apps/
pkeyparam.c 74 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);
pkey.c 1 /* apps/pkey.c */
78 EVP_PKEY *pkey=NULL; local
186 BIO_printf(bio_err, "Usage pkey [options]\n");
231 pkey = load_pubkey(bio_err, infile, informat, 1,
234 pkey = load_key(bio_err, infile, informat, 1,
236 if (!pkey)
244 PEM_write_bio_PUBKEY(out,pkey);
246 PEM_write_bio_PrivateKey(out, pkey, cipher,
252 i2d_PUBKEY_bio(out, pkey);
254 i2d_PrivateKey_bio(out, pkey);
    [all...]
  /external/openssl/crypto/engine/
eng_pkey.c 99 EVP_PKEY *pkey; local
122 pkey = e->load_privkey(e, key_id, ui_method, callback_data);
123 if (!pkey)
129 return pkey;
135 EVP_PKEY *pkey; local
158 pkey = e->load_pubkey(e, key_id, ui_method, callback_data);
159 if (!pkey)
165 return pkey;
  /external/openssl/crypto/x509/
x509rset.c 78 int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey)
81 return(X509_PUBKEY_set(&x->req_info->pubkey,pkey));

Completed in 729 milliseconds

1 2 3 4 5 6 7