Lines Matching defs:kinfo
654 crypto_get_all_mechanism_info_t *kinfo = NULL;
735 kinfo = malloc(sizeof (crypto_get_all_mechanism_info_t) +
737 if (kinfo == NULL) {
742 kinfo->mi_count = count;
743 (void) strlcpy(kinfo->mi_mechanism_name, cipher->name,
746 if (ioctl(fd, CRYPTO_GET_ALL_MECHANISM_INFO, kinfo) == -1) {
752 if (kinfo->mi_return_value == CRYPTO_BUFFER_TOO_SMALL) {
753 count = kinfo->mi_count;
754 free(kinfo);
755 kinfo = malloc(
758 if (kinfo == NULL) {
763 kinfo->mi_count = count;
764 (void) strlcpy(kinfo->mi_mechanism_name, cipher->name,
767 if (ioctl(fd, CRYPTO_GET_ALL_MECHANISM_INFO, kinfo) ==
775 if (kinfo->mi_return_value != CRYPTO_SUCCESS) {
777 "return value = %d\n"), kinfo->mi_return_value);
782 count = kinfo->mi_count;
785 keymin = kinfo->mi_list[i].mi_min_key_size;
786 keymax = kinfo->mi_list[i].mi_max_key_size;
787 if (kinfo->mi_list[i].mi_keysize_unit &
796 free(kinfo);
797 kinfo = NULL;
814 if (kinfo != NULL)
815 free(kinfo);