Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Keys.c45 CK_SLOT_ID slotid; in C_GenerateKey() local
68 slotid = sessp->se_slotid; in C_GenerateKey()
102 CK_SLOT_ID slotid; in C_GenerateKeyPair() local
128 slotid = sessp->se_slotid; in C_GenerateKeyPair()
162 CK_SLOT_ID slotid; in C_WrapKey() local
186 slotid = sessp->se_slotid; in C_WrapKey()
194 rv = FUNCLIST(slotid)->C_WrapKey(sessp->se_handle, in C_WrapKey()
219 CK_SLOT_ID slotid; in C_UnwrapKey() local
243 slotid = sessp->se_slotid; in C_UnwrapKey()
276 CK_SLOT_ID slotid; in C_DeriveKey() local
[all …]
H A Dpkcs11Rand.c43 CK_SLOT_ID slotid; in C_SeedRandom() local
66 slotid = sessp->se_slotid; in C_SeedRandom()
69 if (slottable->st_slots[slotid]->sl_norandom) in C_SeedRandom()
73 rv = FUNCLIST(slotid)->C_SeedRandom(sessp->se_handle, pSeed, in C_SeedRandom()
96 CK_SLOT_ID slotid; in C_GenerateRandom() local
120 slotid = sessp->se_slotid; in C_GenerateRandom()
123 if (slottable->st_slots[slotid]->sl_norandom) in C_GenerateRandom()
H A Dpkcs11Sign.c47 CK_SLOT_ID slotid; in C_SignInit() local
69 slotid = sessp->se_slotid; in C_SignInit()
72 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_SignInit()
77 rv = FUNCLIST(slotid)->C_SignInit(sessp->se_handle, in C_SignInit()
224 CK_SLOT_ID slotid; in C_SignRecoverInit() local
247 slotid = sessp->se_slotid; in C_SignRecoverInit()
250 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_SignRecoverInit()
255 rv = FUNCLIST(slotid)->C_SignRecoverInit(sessp->se_handle, in C_SignRecoverInit()
H A Dpkcs11Verify.c46 CK_SLOT_ID slotid; in C_VerifyInit() local
68 slotid = sessp->se_slotid; in C_VerifyInit()
71 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_VerifyInit()
76 rv = FUNCLIST(slotid)->C_VerifyInit(sessp->se_handle, in C_VerifyInit()
222 CK_SLOT_ID slotid; in C_VerifyRecoverInit() local
245 slotid = sessp->se_slotid; in C_VerifyRecoverInit()
248 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_VerifyRecoverInit()
253 rv = FUNCLIST(slotid)->C_VerifyRecoverInit(sessp->se_handle, in C_VerifyRecoverInit()
H A Dpkcs11Crypt.c48 CK_SLOT_ID slotid; in C_EncryptInit() local
70 slotid = sessp->se_slotid; in C_EncryptInit()
73 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_EncryptInit()
78 rv = FUNCLIST(slotid)->C_EncryptInit(sessp->se_handle, in C_EncryptInit()
231 CK_SLOT_ID slotid; in C_DecryptInit() local
253 slotid = sessp->se_slotid; in C_DecryptInit()
256 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_DecryptInit()
261 rv = FUNCLIST(slotid)->C_DecryptInit(sessp->se_handle, in C_DecryptInit()
H A Dpkcs11Digest.c46 CK_SLOT_ID slotid; in C_DigestInit() local
68 slotid = sessp->se_slotid; in C_DigestInit()
71 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) { in C_DigestInit()
76 rv = FUNCLIST(slotid)->C_DigestInit(sessp->se_handle, in C_DigestInit()
H A Dpkcs11SlotToken.c485 cur_slot->sl_wfse_args->slotid = i; in C_WaitForSlotEvent()
981 rv = FUNCLIST(wfse->slotid)->C_WaitForSlotEvent(wfse->flags, &slot, in child_waitforslotevent()
1008 cur_prov = slottable->st_slots[wfse->slotid]->sl_prov_id; in child_waitforslotevent()
1016 st_slots[wfse->slotid]->sl_mutex); in child_waitforslotevent()
1018 slottable->st_slots[wfse->slotid]->sl_wfse_state = WFSE_CLEAR; in child_waitforslotevent()
1021 st_slots[wfse->slotid]->sl_mutex); in child_waitforslotevent()
1024 for (i = wfse->slotid; i <= slottable->st_last; i++) { in child_waitforslotevent()
1057 st_slots[wfse->slotid]->sl_mutex); in child_waitforslotevent()
1066 slottable->st_slots[wfse->slotid]->sl_no_wfse = B_TRUE; in child_waitforslotevent()
1074 slottable->st_slots[wfse->slotid]->sl_wfse_state = WFSE_CLEAR; in child_waitforslotevent()
[all …]
H A Dpkcs11Conf.c807 pkcs11_is_dismech(CK_SLOT_ID slotid, CK_MECHANISM_TYPE mech) in pkcs11_is_dismech() argument
815 (void) pthread_mutex_lock(&slottable->st_slots[slotid]->sl_mutex); in pkcs11_is_dismech()
816 enabled_pol = slottable->st_slots[slotid]->sl_enabledpol; in pkcs11_is_dismech()
817 pol_mechs = slottable->st_slots[slotid]->sl_pol_mechs; in pkcs11_is_dismech()
818 pol_count = slottable->st_slots[slotid]->sl_pol_count; in pkcs11_is_dismech()
819 (void) pthread_mutex_unlock(&slottable->st_slots[slotid]->sl_mutex); in pkcs11_is_dismech()
H A Dpkcs11Conf.h40 extern boolean_t pkcs11_is_dismech(CK_SLOT_ID slotid, CK_MECHANISM_TYPE mech);
H A Dpkcs11Slot.h45 CK_SLOT_ID slotid; member
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpkcs11slot.c118 slot_supports_krb5(CK_SLOT_ID_PTR slotid) in slot_supports_krb5() argument
143 rv = C_GetMechanismInfo(*slotid, algos.enc_algo, &info); in slot_supports_krb5()
171 rv = C_GetMechanismInfo(*slotid, algos.hash_algo, in slot_supports_krb5()
184 rv = C_GetMechanismInfo(*slotid, algos.str2key_algo, in slot_supports_krb5()
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_identity.c139 opts->slotid = PK_NOSLOT; in pkinit_init_identity_opts()
208 newopts->slotid = src_opts->slotid; in pkinit_dup_identity_opts()
314 long slotid = strtol(vp, NULL, 10); in parse_pkcs11_options() local
315 if ((slotid == LONG_MIN || slotid == LONG_MAX) && errno != 0) { in parse_pkcs11_options()
319 if ((long) (int) slotid != slotid) { in parse_pkcs11_options()
323 idopts->slotid = slotid; in parse_pkcs11_options()
H A Dpkinit_crypto_openssl.h88 CK_SLOT_ID slotid; member
H A Dpkinit.h199 CK_SLOT_ID slotid; member
H A Dpkinit_crypto_openssl.c851 ctx->slotid = PK_NOSLOT; in pkinit_init_pkcs11()
4168 } else if (cctx->slotid != PK_NOSLOT) { in pkinit_open_session()
4186 for (i = 0; i < count && cctx->slotid != tmpslotlist[i]; i++) in pkinit_open_session()
4194 cctx->slotid); in pkinit_open_session()
4196 cctx->slotid); in pkinit_open_session()
4277 if (cctx->slotid != PK_NOSLOT && cctx->slotid != slotlist[i]) in pkinit_open_session()
4471 cctx->slotid = token_choices.token_array[choice].slotID; in pkinit_open_session()
4474 pkiDebug("open_session: slotid %d (%d of %d)\n", (int) cctx->slotid, in pkinit_open_session()
5410 id_cryptoctx->slotid = idopts->slotid;
5431 if ((r = id_cryptoctx->p11->C_GetMechanismList(id_cryptoctx->slotid,
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c3748 CK_SLOT_ID slotid; in KMFPK11_SetTokenPin() local
3763 (void *)&slotid, NULL); in KMFPK11_SetTokenPin()
3775 rv = kmf_pk11_token_lookup(handle, tokenlabel, &slotid); in KMFPK11_SetTokenPin()
3784 rv = C_OpenSession(slotid, CKF_SERIAL_SESSION | CKF_RW_SESSION, in KMFPK11_SetTokenPin()
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_pagelist.c3427 int slotid = pfnflag & (slots - 1); in page_geti_contig_pages() local
3435 if (slotid * slotlen >= szcpages) in page_geti_contig_pages()
3437 pfnlo = pfnlo + (((slotid * slotlen) % szcpages) * szcpgcnt); in page_geti_contig_pages()
/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.c598 token_specific_session(CK_SLOT_ID slotid) in token_specific_session() argument