Searched refs:slotid (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Rand.c45 CK_SLOT_ID slotid; local
68 slotid = sessp->se_slotid;
71 if (slottable->st_slots[slotid]->sl_norandom)
75 rv = FUNCLIST(slotid)->C_SeedRandom(sessp->se_handle, pSeed,
98 CK_SLOT_ID slotid; local
122 slotid = sessp->se_slotid;
125 if (slottable->st_slots[slotid]->sl_norandom)
H A Dpkcs11Keys.c47 CK_SLOT_ID slotid; local
70 slotid = sessp->se_slotid;
73 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
78 rv = FUNCLIST(slotid)->C_GenerateKey(sessp->se_handle,
104 CK_SLOT_ID slotid; local
130 slotid = sessp->se_slotid;
133 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
138 rv = FUNCLIST(slotid)->C_GenerateKeyPair(sessp->se_handle,
164 CK_SLOT_ID slotid; local
188 slotid
221 CK_SLOT_ID slotid; local
278 CK_SLOT_ID slotid; local
[all...]
H A Dpkcs11Conf.h42 extern boolean_t pkcs11_is_dismech(CK_SLOT_ID slotid, CK_MECHANISM_TYPE mech);
H A Dpkcs11Sign.c49 CK_SLOT_ID slotid; local
71 slotid = sessp->se_slotid;
74 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
79 rv = FUNCLIST(slotid)->C_SignInit(sessp->se_handle,
226 CK_SLOT_ID slotid; local
249 slotid = sessp->se_slotid;
252 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
257 rv = FUNCLIST(slotid)->C_SignRecoverInit(sessp->se_handle,
H A Dpkcs11Verify.c48 CK_SLOT_ID slotid; local
70 slotid = sessp->se_slotid;
73 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
78 rv = FUNCLIST(slotid)->C_VerifyInit(sessp->se_handle,
224 CK_SLOT_ID slotid; local
247 slotid = sessp->se_slotid;
250 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
255 rv = FUNCLIST(slotid)->C_VerifyRecoverInit(sessp->se_handle,
H A Dpkcs11Digest.c48 CK_SLOT_ID slotid; local
70 slotid = sessp->se_slotid;
73 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
78 rv = FUNCLIST(slotid)->C_DigestInit(sessp->se_handle,
H A Dpkcs11Crypt.c50 CK_SLOT_ID slotid; local
72 slotid = sessp->se_slotid;
75 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
80 rv = FUNCLIST(slotid)->C_EncryptInit(sessp->se_handle,
233 CK_SLOT_ID slotid; local
255 slotid = sessp->se_slotid;
258 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
263 rv = FUNCLIST(slotid)->C_DecryptInit(sessp->se_handle,
H A Dpkcs11SlotToken.c336 * Try to map the returned slotid to a slot
485 cur_slot->sl_wfse_args->slotid = i;
981 rv = FUNCLIST(wfse->slotid)->C_WaitForSlotEvent(wfse->flags, &slot,
1008 cur_prov = slottable->st_slots[wfse->slotid]->sl_prov_id;
1016 st_slots[wfse->slotid]->sl_mutex);
1018 slottable->st_slots[wfse->slotid]->sl_wfse_state = WFSE_CLEAR;
1021 st_slots[wfse->slotid]->sl_mutex);
1024 for (i = wfse->slotid; i <= slottable->st_last; i++) {
1057 st_slots[wfse->slotid]->sl_mutex);
1066 slottable->st_slots[wfse->slotid]
[all...]
H A Dpkcs11Slot.h47 CK_SLOT_ID slotid; member in struct:wfse_args
H A Dpkcs11Conf.c698 /* No policy is in effect, don't need slotid */
803 * pkcs11_is_dismech is provided a slotid and a mechanism.
807 pkcs11_is_dismech(CK_SLOT_ID slotid, CK_MECHANISM_TYPE mech) argument
815 (void) pthread_mutex_lock(&slottable->st_slots[slotid]->sl_mutex);
816 enabled_pol = slottable->st_slots[slotid]->sl_enabledpol;
817 pol_mechs = slottable->st_slots[slotid]->sl_pol_mechs;
818 pol_count = slottable->st_slots[slotid]->sl_pol_count;
819 (void) pthread_mutex_unlock(&slottable->st_slots[slotid]->sl_mutex);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpkcs11slot.c120 slot_supports_krb5(CK_SLOT_ID_PTR slotid) argument
145 rv = C_GetMechanismInfo(*slotid, algos.enc_algo, &info);
173 rv = C_GetMechanismInfo(*slotid, algos.hash_algo,
186 rv = C_GetMechanismInfo(*slotid, algos.str2key_algo,
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_identity.c139 opts->slotid = PK_NOSLOT;
208 newopts->slotid = src_opts->slotid;
313 } else if (!strcmp(cp, "slotid")) {
314 long slotid = strtol(vp, NULL, 10); local
315 if ((slotid == LONG_MIN || slotid == LONG_MAX) && errno != 0) {
319 if ((long) (int) slotid != slotid) {
323 idopts->slotid
[all...]
H A Dpkinit.h199 CK_SLOT_ID slotid; member in struct:_pkinit_identity_opts
H A Dpkinit_crypto_openssl.h80 CK_SLOT_ID slotid; member in struct:_pkinit_identity_crypto_context
H A Dpkinit_crypto_openssl.c774 ctx->slotid = PK_NOSLOT;
3994 } else if (cctx->slotid != PK_NOSLOT) {
4012 for (i = 0; i < count && cctx->slotid != tmpslotlist[i]; i++)
4020 cctx->slotid);
4022 cctx->slotid);
4077 * Solaris Kerberos: get list of PKCS11 slotid's that have tokens.
4100 * Solaris Kerberos: if a slotid was specified skip slots that don't
4103 if (cctx->slotid != PK_NOSLOT && cctx->slotid != slotlist[i])
4165 pkiDebug("open_session: slotid
[all...]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c3747 CK_SLOT_ID slotid; local
3762 (void *)&slotid, NULL);
3774 rv = kmf_pk11_token_lookup(handle, tokenlabel, &slotid);
3783 rv = C_OpenSession(slotid, CKF_SERIAL_SESSION | CKF_RW_SESSION,
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_pagelist.c3473 int slotid = pfnflag & (slots - 1); local
3480 /* skip if 'slotid' slot is empty */
3481 if (slotid * slotlen >= szcpages)
3483 pfnlo = pfnlo + (((slotid * slotlen) % szcpages) * szcpgcnt);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Dk5-int.h1687 extern krb5_error_code slot_supports_krb5 (CK_SLOT_ID_PTR slotid);
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpm_specific.c594 token_specific_session(CK_SLOT_ID slotid) argument

Completed in 970 milliseconds