Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/lib/libnsl/key/
H A Dpublickey.c148 getkeys_nis(int *errp, char *netname, char *pkey, char *skey, char *passwd) in getkeys_nis() argument
195 if (pkey) { in getkeys_nis()
202 (void) strcpy(pkey, keyval); in getkeys_nis()
228 getkeys_files(int *errp, char *netname, char *pkey, char *skey, char *passwd) in getkeys_files() argument
276 if (pkey) { in getkeys_files()
285 (void) strcpy(pkey, mval); in getkeys_files()
310 __getpublickey_cached(char *netname, char *pkey, int *from_cache) in __getpublickey_cached() argument
312 return (__getpublickey_cached_g(netname, KEYSIZE, 0, pkey, in __getpublickey_cached()
317 getpublickey(const char *netname, char *pkey) in getpublickey() argument
319 return (__getpublickey_cached((char *)netname, pkey, (int *)0)); in getpublickey()
[all …]
H A Dgen_dhkeys.c166 __gen_dhkeys_g(char *pkey, /* out */ in __gen_dhkeys_g() argument
174 if (! pkey || ! skey || ! pass) in __gen_dhkeys_g()
178 __gen_dhkeys(pkey, skey, pass); in __gen_dhkeys_g()
186 (*dlfp)(pkey, skey, pass); /* void */ in __gen_dhkeys_g()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_keylocation.ksh59 log_mustnot zfs set keylocation=/$TESTPOOL/pkey $TESTPOOL/$TESTFS
60 log_mustnot zfs set keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS
64 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1
67 log_mustnot zfs set keylocation=/$TESTPOOL/pkey $TESTPOOL/$TESTFS1
69 log_must zfs set keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1
78 log_must rm /$TESTPOOL/pkey
87 log_mustnot zfs set keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1/child
88 log_mustnot zfs set keylocation=/$TESTPOOL/pkey $TESTPOOL/$TESTFS1/child
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c782 readAltFormatPrivateKey(KMF_DATA *filedata, EVP_PKEY **pkey) in readAltFormatPrivateKey() argument
797 *pkey = NULL; in readAltFormatPrivateKey()
888 *pkey = ImportRawRSAKey(&rsa); in readAltFormatPrivateKey()
941 EVP_PKEY *pkey = NULL; in openssl_load_key() local
960 pkey = d2i_PrivateKey_bio(keyfile, NULL); in openssl_load_key()
961 if (pkey == NULL) { in openssl_load_key()
970 &pkey); in openssl_load_key()
976 pkey = PEM_read_bio_PrivateKey(keyfile, NULL, NULL, NULL); in openssl_load_key()
977 if (pkey == NULL) { in openssl_load_key()
994 &derdata, &pkey); in openssl_load_key()
[all …]
H A Dcompat.c230 EVP_PKEY_get0_DSA(EVP_PKEY *pkey) in EVP_PKEY_get0_DSA() argument
232 if (pkey->type != EVP_PKEY_DSA) in EVP_PKEY_get0_DSA()
234 return (pkey->pkey.dsa); in EVP_PKEY_get0_DSA()
439 EVP_PKEY_get0_RSA(EVP_PKEY *pkey) in EVP_PKEY_get0_RSA() argument
441 if (pkey->type != EVP_PKEY_RSA) { in EVP_PKEY_get0_RSA()
444 return (pkey->pkey.rsa); in EVP_PKEY_get0_RSA()
H A Dcompat.h40 DSA *EVP_PKEY_get0_DSA(EVP_PKEY *pkey);
73 RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey);
/illumos-gate/usr/src/cmd/ibd_upgrade/
H A Dibd_upgrade.sh40 pkey=
56 pkey=0x$2
131 -o "$pkey" = "0x0" -o "$pkey" = "0x" ]; then
151 do_cmd "dladm create-part -f -l $2 -P $pkey $partition_name"
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetkeyent.c67 char *keytype = (char *)argp->key.pkey.keytype; in _nss_ldap_key2str()
71 char *buffer, *pkey, *skey; in _nss_ldap_key2str() local
96 pkey = *pkey_array + keytypelen; in _nss_ldap_key2str()
124 len = strlen(pkey) + strlen(skey) + 2; in _nss_ldap_key2str()
135 (void) snprintf(buffer, len, "%s:%s", pkey, skey); in _nss_ldap_key2str()
173 if (_ldap_filter_name(netname, argp->key.pkey.name, sizeof (netname)) in getkeys()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_des.c104 netobj pkey; in authdes_seccreate() local
114 pkey.n_bytes = (char *)pkey_data; in authdes_seccreate()
115 pkey.n_len = (uint_t)strlen((char *)pkey_data) + 1; in authdes_seccreate()
116 return (authdes_pk_seccreate(servername, &pkey, win, timehost, in authdes_seccreate()
127 authdes_pk_seccreate(const char *servername, netobj *pkey, uint_t window, in authdes_pk_seccreate() argument
154 (void) memcpy(ad->ad_pkey, pkey->n_bytes, pkey->n_len); in authdes_pk_seccreate()
404 netobj pkey; in authdes_refresh() local
420 pkey.n_bytes = (char *)(ad->ad_pkey); in authdes_refresh()
421 pkey.n_len = (uint_t)strlen((char *)ad->ad_pkey) + 1; in authdes_refresh()
422 if (key_encryptsession_pk(ad->ad_servername, &pkey, &ad->ad_xkey) < 0) { in authdes_refresh()
H A Dkey_call.c623 const char *pkey, in key_setnet_g_ext() argument
644 arg.st_pub_key.keybuf3_val = (char *)pkey; in key_setnet_g_ext()
696 const char *pkey, keylen_t pkeylen, algtype_t algtype) in key_setnet_g() argument
698 return (key_setnet_g_ext(netname, skey, skeylen, pkey, pkeylen, in key_setnet_g()
707 const char *pkey, keylen_t pkeylen, algtype_t algtype) in key_setnet_g_ruid() argument
709 return (key_setnet_g_ext(netname, skey, skeylen, pkey, pkeylen, in key_setnet_g_ruid()
714 key_get_conv(char *pkey, des_block *deskey) in key_get_conv() argument
718 if (!key_call((rpcproc_t)KEY_GET_CONV, xdr_keybuf, pkey, in key_get_conv()
731 const char *pkey, in key_get_conv_g() argument
742 return (key_get_conv((char *)pkey, deskey)); in key_get_conv_g()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh192/
H A Dfakensl.c42 int algtype, char *pkey, size_t pkeylen, int *cached) in __getpublickey_cached_g() argument
44 return (getpublickey(remotename, pkey)); in __getpublickey_cached_g()
51 int algtype, char *pkey, size_t pkeylen) in getpublickey_g() argument
53 return (getpublickey(remotename, pkey)); in getpublickey_g()
/illumos-gate/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_hca.c323 ib_pkey_t pkey; in ibnex_config_obp_args() local
349 devname, &pkey, &port_num) != IBNEX_SUCCESS) { in ibnex_config_obp_args()
387 rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip); in ibnex_config_obp_args()
395 if (pkey == port_attr->pa_pkey_tbl[ii].pt_pkey) { in ibnex_config_obp_args()
397 index, IBNEX_VPPA_COMMSVC_NODE, pkey, &rval, in ibnex_config_obp_args()
418 char *devname, ib_pkey_t *pkey, uint8_t *port) in ibnex_prom_devname_to_pkey_n_portnum() argument
434 *pkey = ibnex_str2hex(tmp, (tmp1 - tmp), &ret); in ibnex_prom_devname_to_pkey_n_portnum()
486 ib_pkey_t pkey; in ibnex_hca_bus_config_one() local
549 &index, &pkey, &port_num) != IBNEX_SUCCESS) { in ibnex_hca_bus_config_one()
556 if ((pkey != 0) && (port_num != 0)) { in ibnex_hca_bus_config_one()
H A Dibnex.c1484 ib_pkey_t pkey; in ibnex_create_vppa_nodes() local
1502 pkey = port_attr->pa_pkey_tbl[ii].pt_pkey; in ibnex_create_vppa_nodes()
1504 if (IBNEX_INVALID_PKEY(pkey)) { in ibnex_create_vppa_nodes()
1508 port_attr->pa_port_guid, idx, pkey, &dip); in ibnex_create_vppa_nodes()
1512 pkey, &rval, IBNEX_CFGADM_ENUMERATE); in ibnex_create_vppa_nodes()
1614 ib_pkey_t pkey; in ibnex_config_port_node() local
1622 &index, &pkey, &port_num) != IBNEX_SUCCESS) { in ibnex_config_port_node()
1658 rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip); in ibnex_config_port_node()
1669 if (pkey == 0 && port_num != 0) { in ibnex_config_port_node()
1671 port_attr, index, IBNEX_PORT_COMMSVC_NODE, pkey, &rval, in ibnex_config_port_node()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Ddump.c613 krb5_key_data *pkey, *akey, nullkey; local
656 pkey = akey = (krb5_key_data *) NULL;
696 &pkey)) &&
709 if (!pkey && akey) {
710 pkey = akey;
724 (krb5_int32) pkey->key_data_length[0],
726 (krb5_int32) pkey->key_data_length[1],
729 (krb5_int32) pkey->key_data_type[0]);
730 for (i=0; i<pkey->key_data_length[0]; i++) {
731 fprintf(arg->ofile, "%02x", pkey->key_data_contents[0][i]);
[all …]
/illumos-gate/usr/src/uts/common/io/ib/ibtl/
H A Dibtl_hca.c1338 ib_pkey_t pkey, uint16_t *pkey_ix) in ibtl_pkey2index() argument
1345 hca_devp, port_num, pkey); in ibtl_pkey2index()
1349 if ((pkey == IB_PKEY_INVALID_FULL) || in ibtl_pkey2index()
1350 (pkey == IB_PKEY_INVALID_LIMITED)) in ibtl_pkey2index()
1362 if (pkey == port_infop->p_pkey_tbl[i]) { in ibtl_pkey2index()
1387 uint16_t pkey_ix, ib_pkey_t *pkey) in ibtl_index2pkey() argument
1412 *pkey = port_infop->p_pkey_tbl[pkey_ix]; in ibtl_index2pkey()
1413 if ((*pkey == IB_PKEY_INVALID_FULL) || in ibtl_index2pkey()
1414 (*pkey == IB_PKEY_INVALID_LIMITED)) in ibtl_index2pkey()
1435 ibt_pkey2index(ibt_hca_hdl_t hca_hdl, uint8_t port_num, ib_pkey_t pkey, in ibt_pkey2index() argument
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/rdma/
H A Dib_addr.h72 uint16_t pkey) in ib_addr_set_pkey() argument
74 dev_addr->broadcast[8] = pkey >> 8; in ib_addr_set_pkey()
75 dev_addr->broadcast[9] = (unsigned char) pkey; in ib_addr_set_pkey()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_load-key/
H A Dzfs_load-key_all.ksh51 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1
54 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/zvol
58 -O keylocation=file:///$TESTPOOL/pkey $TESTPOOL1 $DISK2
H A Dzfs_load-key_recursive.ksh50 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1
53 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1/child
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unload-key/
H A Dzfs_unload-key_all.ksh52 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1
56 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/zvol
60 -O keylocation=file:///$TESTPOOL/pkey $TESTPOOL1 $DISK2
H A Dzfs_unload-key_recursive.ksh52 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1
54 -o keylocation=file:///$TESTPOOL/pkey $TESTPOOL/$TESTFS1/child
/illumos-gate/usr/src/uts/common/sys/ib/ibnex/
H A Dibnex.h275 #define IBNEX_INVALID_PKEY(pkey) \ argument
276 (((pkey) == IB_PKEY_INVALID_FULL) || \
277 ((pkey) == IB_PKEY_INVALID_LIMITED))
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dtsd.c49 thr_keycreate(thread_key_t *pkey, void (*destructor)(void *)) in thr_keycreate() argument
126 *pkey = tsdm->tsdm_nused; in thr_keycreate()
138 pthread_key_create(pthread_key_t *pkey, void (*destructor)(void *)) in pthread_key_create() argument
140 return (thr_keycreate(pkey, destructor)); in pthread_key_create()
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibdm/
H A Dibdm_impl.h374 #define IBDM_INVALID_PKEY(pkey) \ argument
375 (((pkey) == IB_PKEY_INVALID_FULL) || \
376 ((pkey) == IB_PKEY_INVALID_LIMITED))
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlib.c427 ib_pkey_t pkey, uint32_t flags, char *pname, datalink_id_t *partlinkid, in dladm_part_create() argument
438 pattr.dia_pkey = pkey; in dladm_part_create()
615 ib_pkey_t pkey; in i_dladm_part_up() local
659 pkey = (ib_pkey_t)u64; in i_dladm_part_up()
676 pattr.dia_pkey = pkey; in i_dladm_part_up()
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Dgeneric_key.c238 __generic_common_dhkeys(char *pkey, /* Public key of remote */ in __generic_common_dhkeys() argument
246 MINT *pk = mp_xtom(pkey); in __generic_common_dhkeys()

123