Lines Matching refs:pm
228 crypto_get_provider_mechanisms_t *pm, tmp; in C_GetMechanismList() local
269 pm = malloc(alloc_bytes); in C_GetMechanismList()
270 if (pm == NULL) in C_GetMechanismList()
273 pm->pm_provider_id = provider_id; in C_GetMechanismList()
274 pm->pm_count = tmp.pm_count; in C_GetMechanismList()
276 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISMS, pm)) < 0) { in C_GetMechanismList()
283 rv = crypto2pkcs11_error_number(pm->pm_return_value); in C_GetMechanismList()
289 for (i = 0; i < pm->pm_count; i++) { in C_GetMechanismList()
291 bcopy(&pm->pm_list[i][0], mechanism_info.mi_mechanism_name, in C_GetMechanismList()
335 if (strcmp(&pm->pm_list[i][0], "random") != 0) { in C_GetMechanismList()
337 if (pkcs11_str2mech(&pm->pm_list[i][0], in C_GetMechanismList()
356 free(pm); in C_GetMechanismList()