Lines Matching defs:pm
230 crypto_get_provider_mechanisms_t *pm, tmp;
271 pm = malloc(alloc_bytes);
272 if (pm == NULL)
275 pm->pm_provider_id = provider_id;
276 pm->pm_count = tmp.pm_count;
278 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISMS, pm)) < 0) {
285 rv = crypto2pkcs11_error_number(pm->pm_return_value);
291 for (i = 0; i < pm->pm_count; i++) {
293 bcopy(&pm->pm_list[i][0], mechanism_info.mi_mechanism_name,
337 if (strcmp(&pm->pm_list[i][0], "random") != 0) {
339 if (pkcs11_str2mech(&pm->pm_list[i][0],
358 free(pm);