Lines Matching refs:slotidx

68 	CK_ULONG		slotidx;  member
193 pkcs11_find(struct pkcs11_provider *p, CK_ULONG slotidx, CK_ATTRIBUTE *attr, in pkcs11_find() argument
203 session = p->slotinfo[slotidx].session; in pkcs11_find()
255 si = &k11->provider->slotinfo[k11->slotidx]; in pkcs11_rsa_private_encrypt()
287 if (pkcs11_find(k11->provider, k11->slotidx, key_filter, 3, &obj) < 0 && in pkcs11_rsa_private_encrypt()
288 pkcs11_find(k11->provider, k11->slotidx, key_filter, 2, &obj) < 0) { in pkcs11_rsa_private_encrypt()
313 pkcs11_rsa_wrap(struct pkcs11_provider *provider, CK_ULONG slotidx, in pkcs11_rsa_wrap() argument
322 k11->slotidx = slotidx; in pkcs11_rsa_wrap()
358 pkcs11_open_session(struct pkcs11_provider *p, CK_ULONG slotidx, char *pin) in pkcs11_open_session() argument
366 login_required = p->slotinfo[slotidx].token.flags & CKF_LOGIN_REQUIRED; in pkcs11_open_session()
371 if ((rv = f->C_OpenSession(p->slotlist[slotidx], CKF_RW_SESSION| in pkcs11_open_session()
386 p->slotinfo[slotidx].logged_in = 1; in pkcs11_open_session()
388 p->slotinfo[slotidx].session = session; in pkcs11_open_session()
402 pkcs11_fetch_keys(struct pkcs11_provider *p, CK_ULONG slotidx, in pkcs11_fetch_keys() argument
426 if (pkcs11_fetch_keys_filter(p, slotidx, pubkey_filter, pubkey_attribs, in pkcs11_fetch_keys()
428 pkcs11_fetch_keys_filter(p, slotidx, cert_filter, cert_attribs, in pkcs11_fetch_keys()
446 pkcs11_fetch_keys_filter(struct pkcs11_provider *p, CK_ULONG slotidx, in pkcs11_fetch_keys_filter() argument
463 session = p->slotinfo[slotidx].session; in pkcs11_fetch_keys_filter()
537 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) { in pkcs11_fetch_keys_filter()