Searched refs:pkey (Results 1 - 25 of 229) sorted by relevance

12345678910

/freebsd-10-stable/crypto/openssl/crypto/evp/
H A Dp_lib.c85 int EVP_PKEY_bits(EVP_PKEY *pkey) argument
87 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
88 return pkey->ameth->pkey_bits(pkey);
92 int EVP_PKEY_size(EVP_PKEY *pkey) argument
94 if (pkey && pkey->ameth && pkey
99 EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) argument
139 EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) argument
201 pkey_set_type(EVP_PKEY *pkey, int type, const char *str, int len) argument
244 EVP_PKEY_set_type(EVP_PKEY *pkey, int type) argument
249 EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) argument
254 EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) argument
262 EVP_PKEY_get0(EVP_PKEY *pkey) argument
268 EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) argument
276 EVP_PKEY_get1_RSA(EVP_PKEY *pkey) argument
288 EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) argument
296 EVP_PKEY_get1_DSA(EVP_PKEY *pkey) argument
309 EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) argument
317 EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) argument
330 EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) argument
338 EVP_PKEY_get1_DH(EVP_PKEY *pkey) argument
366 EVP_PKEY_id(const EVP_PKEY *pkey) argument
371 EVP_PKEY_base_id(const EVP_PKEY *pkey) argument
415 unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) argument
424 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
433 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
442 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) argument
450 EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) argument
[all...]
H A Devp_pkey.c71 EVP_PKEY *pkey = NULL; local
78 if (!(pkey = EVP_PKEY_new())) {
83 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid))) {
90 if (pkey->ameth->priv_decode) {
91 if (!pkey->ameth->priv_decode(pkey, p8)) {
100 return pkey;
103 EVP_PKEY_free(pkey);
107 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey) argument
109 return EVP_PKEY2PKCS8_broken(pkey, PKCS8_O
114 EVP_PKEY2PKCS8_broken(EVP_PKEY *pkey, int broken) argument
[all...]
H A Dp_verify.c66 unsigned int siglen, EVP_PKEY *pkey)
83 pkctx = EVP_PKEY_CTX_new(pkey, NULL);
100 if (pkey->type == v) {
115 sigbuf, siglen, pkey->pkey.ptr));
65 EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey) argument
H A Dp_sign.c78 unsigned int *siglen, EVP_PKEY *pkey)
95 size_t sltmp = (size_t)EVP_PKEY_size(pkey);
97 pkctx = EVP_PKEY_CTX_new(pkey, NULL);
117 if (pkey->type == v) {
132 pkey->pkey.ptr));
77 EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey) argument
/freebsd-10-stable/crypto/openssl/crypto/cmac/
H A Dcm_ameth.c65 static int cmac_size(const EVP_PKEY *pkey) argument
70 static void cmac_key_free(EVP_PKEY *pkey) argument
72 CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
/freebsd-10-stable/crypto/openssl/crypto/hmac/
H A Dhm_ameth.c71 static int hmac_size(const EVP_PKEY *pkey) argument
76 static void hmac_key_free(EVP_PKEY *pkey) argument
78 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey.ptr;
86 static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument
105 static int old_hmac_decode(EVP_PKEY *pkey, argument
112 if (!EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, os))
121 static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
124 ASN1_OCTET_STRING *os = (ASN1_OCTET_STRING *)pkey->pkey
[all...]
/freebsd-10-stable/crypto/openssl/crypto/asn1/
H A Dasn1_locl.h83 int (*pub_print) (BIO *out, const EVP_PKEY *pkey, int indent,
87 int (*priv_print) (BIO *out, const EVP_PKEY *pkey, int indent,
91 int (*param_decode) (EVP_PKEY *pkey,
93 int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder);
97 int (*param_print) (BIO *out, const EVP_PKEY *pkey, int indent,
102 void (*pkey_free) (EVP_PKEY *pkey);
103 int (*pkey_ctrl) (EVP_PKEY *pkey, int op, long arg1, void *arg2);
105 int (*old_priv_decode) (EVP_PKEY *pkey,
107 int (*old_priv_encode) (const EVP_PKEY *pkey, unsigned char **pder);
110 X509_ALGOR *a, ASN1_BIT_STRING *sig, EVP_PKEY *pkey);
[all...]
H A Dp8_pkey.c72 if (key->pkey && key->pkey->type == V_ASN1_OCTET_STRING
73 && key->pkey->value.octet_string != NULL)
74 OPENSSL_cleanse(key->pkey->value.octet_string->data,
75 key->pkey->value.octet_string->length);
83 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, pkey, ASN1_ANY),
111 ASN1_TYPE_set(priv->pkey, pmtype, oct);
128 if (p8->pkey->type == V_ASN1_OCTET_STRING) {
131 *pk = p8->pkey->value.octet_string->data;
132 *ppklen = p8->pkey
[all...]
H A Di2d_pu.c79 return (i2d_RSAPublicKey(a->pkey.rsa, pp));
83 return (i2d_DSAPublicKey(a->pkey.dsa, pp));
87 return (i2o_ECPublicKey(a->pkey.ec, pp));
H A Dx_pubkey.c77 EVP_PKEY_free(pubkey->pkey);
89 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
99 if (pkey->ameth) {
100 if (pkey->ameth->pub_encode) {
101 if (!pkey->ameth->pub_encode(pk, pkey)) {
134 if (key->pkey != NULL) {
135 CRYPTO_add(&key->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
136 return key->pkey;
162 /* Check to see if another thread set key->pkey firs
[all...]
H A Dt_spki.c76 EVP_PKEY *pkey; local
84 pkey = X509_PUBKEY_get(spki->spkac->pubkey);
85 if (!pkey)
88 EVP_PKEY_print_public(out, pkey, 4, NULL);
89 EVP_PKEY_free(pkey);
/freebsd-10-stable/crypto/openssl/crypto/ec/
H A Dec_ameth.c101 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument
103 EC_KEY *ec_key = pkey->pkey.ec;
180 static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
205 EVP_PKEY_assign_EC_KEY(pkey, eckey);
217 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
218 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec),
219 *pb = EC_KEY_get0_public_key(b->pkey.ec);
228 static int eckey_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) argument
285 EVP_PKEY_assign_EC_KEY(pkey, ecke
296 eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument
349 int_ec_size(const EVP_PKEY *pkey) argument
354 ec_bits(const EVP_PKEY *pkey) argument
375 ec_missing_parameters(const EVP_PKEY *pkey) argument
403 int_ec_free(EVP_PKEY *pkey) argument
497 eckey_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument
509 eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
514 eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
520 eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
526 eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
532 old_ec_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument
544 old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
549 ec_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument
[all...]
H A Dec_pmeth.c68 /* EC pkey context structure */
123 EC_KEY *ec = ctx->pkey->pkey.ec;
152 EC_KEY *ec = ctx->pkey->pkey.ec;
171 if (!ctx->pkey || !ctx->peerkey) {
178 group = EC_KEY_get0_group(ctx->pkey->pkey.ec);
183 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
192 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey
259 pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
279 pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
[all...]
/freebsd-10-stable/crypto/openssl/crypto/dh/
H A Ddh_ameth.c67 static void int_dh_free(EVP_PKEY *pkey) argument
69 DH_free(pkey->pkey.dh);
72 static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
114 EVP_PKEY_assign_DH(pkey, dh);
126 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument
135 dh = pkey->pkey.dh;
181 static int dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) argument
218 EVP_PKEY_assign_DH(pkey, d
232 dh_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument
291 dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument
303 dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
384 int_dh_size(const EVP_PKEY *pkey) argument
389 dh_bits(const EVP_PKEY *pkey) argument
439 dh_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
445 dh_public_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
451 dh_private_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
[all...]
H A Ddh_pmeth.c68 /* DH pkey context structure */
157 static int pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
174 EVP_PKEY_assign_DH(pkey, dh);
180 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) argument
183 if (ctx->pkey == NULL) {
190 EVP_PKEY_assign_DH(pkey, dh);
191 /* Note: if error return, pkey is freed by parent routine */
192 if (!EVP_PKEY_copy_parameters(pkey, ctx->pkey))
194 return DH_generate_key(pkey
[all...]
/freebsd-10-stable/crypto/openssl/crypto/dsa/
H A Ddsa_ameth.c70 static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) argument
117 EVP_PKEY_assign_DSA(pkey, dsa);
129 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) argument
137 dsa = pkey->pkey.dsa;
138 if (pkey->save_parameters && dsa->p && dsa->q && dsa->g) {
180 static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) argument
266 EVP_PKEY_assign_DSA(pkey, dsa);
284 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) argument
291 if (!pkey
339 int_dsa_size(const EVP_PKEY *pkey) argument
344 dsa_bits(const EVP_PKEY *pkey) argument
349 dsa_missing_parameters(const EVP_PKEY *pkey) argument
400 int_dsa_free(EVP_PKEY *pkey) argument
477 dsa_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument
489 dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
494 dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
500 dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
506 dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) argument
512 old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) argument
524 old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) argument
571 dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) argument
[all...]
/freebsd-10-stable/crypto/openssl/crypto/pkcs12/
H A Dp12_kiss.c67 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
70 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
73 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
78 * should point to a valid STACK structure. pkey and cert can be passed
82 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, argument
95 if (pkey)
96 *pkey = NULL;
131 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) {
137 if (pkey && *pkey
180 parse_pk12(PKCS12 *p12, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) argument
226 parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) argument
[all...]
/freebsd-10-stable/crypto/openssl/ssl/
H A Dssl_rsa.c68 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
146 EVP_PKEY *pkey; local
157 if ((pkey = EVP_PKEY_new()) == NULL) {
163 if (EVP_PKEY_assign_RSA(pkey, rsa) <= 0) {
168 ret = ssl_set_pkey(ssl->cert, pkey);
169 EVP_PKEY_free(pkey);
174 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey) argument
178 i = ssl_cert_type(NULL, pkey);
196 EVP_PKEY_copy_parameters(pktmp, pkey);
205 if ((pkey
288 SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) argument
309 EVP_PKEY *pkey = NULL; local
352 EVP_PKEY *pkey; local
380 EVP_PKEY *pkey; local
505 EVP_PKEY *pkey; local
592 SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey) argument
610 EVP_PKEY *pkey = NULL; local
652 EVP_PKEY *pkey; local
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_vlan.c53 int ipoib_vlan_add(struct ifnet *pdev, unsigned short pkey) argument
71 if (ppriv->pkey == pkey) {
78 if (priv->pkey == pkey) {
86 ppriv->dev->name, pkey);
103 priv->pkey = pkey;
106 priv->broadcastaddr[8] = pkey >> 8;
107 priv->broadcastaddr[9] = pkey
160 ipoib_vlan_delete(struct ifnet *pdev, unsigned short pkey) argument
[all...]
/freebsd-10-stable/crypto/openssl/crypto/pem/
H A Dpem_sign.c78 unsigned int *siglen, EVP_PKEY *pkey)
84 m = (unsigned char *)OPENSSL_malloc(EVP_PKEY_size(pkey) + 2);
90 if (EVP_SignFinal(ctx, m, &m_len, pkey) <= 0)
77 PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey) argument
/freebsd-10-stable/crypto/openssl/apps/
H A Dpkeyparam.c75 EVP_PKEY *pkey = NULL; local
164 pkey = PEM_read_bio_Parameters(in, NULL);
165 if (!pkey) {
172 PEM_write_bio_Parameters(out, pkey);
175 EVP_PKEY_print_params(out, pkey, 0, NULL);
180 EVP_PKEY_free(pkey);
H A Dpkey.c1 /* apps/pkey.c */
79 EVP_PKEY *pkey = NULL; local
165 BIO_printf(bio_err, "Usage pkey [options]\n");
206 pkey = load_pubkey(bio_err, infile, informat, 1,
209 pkey = load_key(bio_err, infile, informat, 1, passin, e, "key");
210 if (!pkey)
216 PEM_write_bio_PUBKEY(out, pkey);
218 PEM_write_bio_PrivateKey(out, pkey, cipher,
222 i2d_PUBKEY_bio(out, pkey);
224 i2d_PrivateKey_bio(out, pkey);
[all...]
/freebsd-10-stable/sys/ofed/include/rdma/
H A Dib_cache.h77 * @pkey: The PKey value found at the specified index.
85 u16 *pkey);
92 * @pkey: The PKey value to search for.
100 u16 pkey,
/freebsd-10-stable/crypto/openssl/crypto/engine/
H A Deng_pkey.c102 EVP_PKEY *pkey; local
121 pkey = e->load_privkey(e, key_id, ui_method, callback_data);
122 if (!pkey) {
127 return pkey;
133 EVP_PKEY *pkey; local
151 pkey = e->load_pubkey(e, key_id, ui_method, callback_data);
152 if (!pkey) {
157 return pkey;
/freebsd-10-stable/crypto/openssl/crypto/x509/
H A Dx509rset.c80 int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey) argument
84 return (X509_PUBKEY_set(&x->req_info->pubkey, pkey));

Completed in 118 milliseconds

12345678910