Lines Matching defs:info
77 * to copy the ops vector from the provider info structure to the
80 * framework does not require the provider info structure to be
129 crypto_register_provider(crypto_provider_info_t *info,
139 if (info->pi_interface_version > CRYPTO_SPI_VERSION_4) {
147 if (info->pi_provider_type != CRYPTO_HW_PROVIDER &&
148 info->pi_provider_type != CRYPTO_SW_PROVIDER &&
149 info->pi_provider_type != CRYPTO_LOGICAL_PROVIDER)
156 prov_desc = kcf_alloc_provider_desc(info);
159 prov_desc->pd_prov_type = info->pi_provider_type;
162 prov_desc->pd_prov_handle = info->pi_provider_handle;
165 if (info->pi_provider_description != NULL) {
174 bcopy(info->pi_provider_description, prov_desc->pd_description,
175 min(strlen(info->pi_provider_description),
179 if (info->pi_provider_type != CRYPTO_LOGICAL_PROVIDER) {
180 if (info->pi_ops_vector == NULL) {
183 copy_ops_vector_v1(info->pi_ops_vector,
185 if (info->pi_interface_version >= CRYPTO_SPI_VERSION_2) {
186 copy_ops_vector_v2(info->pi_ops_vector,
188 prov_desc->pd_flags = info->pi_flags;
190 if (info->pi_interface_version >= CRYPTO_SPI_VERSION_3) {
191 copy_ops_vector_v3(info->pi_ops_vector,
194 if (info->pi_interface_version == CRYPTO_SPI_VERSION_4) {
195 copy_ops_vector_v4(info->pi_ops_vector,
209 switch (info->pi_provider_type) {
211 if (info->pi_provider_dev.pd_sw == NULL)
214 if ((mcp = mod_getctl(info->pi_provider_dev.pd_sw)) == NULL)
223 if (info->pi_provider_dev.pd_hw == NULL)
227 ddi_get_instance(info->pi_provider_dev.pd_hw);
228 name = (char *)ddi_driver_name(info->pi_provider_dev.pd_hw);
237 if ((prov_desc->pd_mctlp = kcf_get_modctl(info)) == NULL)
241 if ((ret = init_prov_mechs(info, prov_desc)) != CRYPTO_SUCCESS)
368 process_logical_providers(info, prov_desc);
429 info->pi_provider_description);
435 info->pi_provider_description);
441 info->pi_provider_description);
448 info->pi_provider_description,
449 info->pi_interface_version);
455 "validation error.", info->pi_provider_description);
461 info->pi_provider_description, ret);
780 * Process the mechanism info structures specified by the provider
792 init_prov_mechs(crypto_provider_info_t *info, kcf_provider_desc_t *desc)
802 if (info != NULL) {
803 ASSERT(info->pi_mechanisms != NULL);
804 bcopy(info->pi_mechanisms, desc->pd_mechanisms,
811 * Copy the mechanism list from the provider info to the provider
816 if (info != NULL) {
817 if (info->pi_ops_vector->co_random_ops != NULL) {
825 if (info->pi_mechanisms != NULL) {
826 bcopy(info->pi_mechanisms, desc->pd_mechanisms,
836 ASSERT(info->pi_mechanisms != NULL);
837 bcopy(info->pi_mechanisms, desc->pd_mechanisms,
1038 process_logical_providers(crypto_provider_info_t *info, kcf_provider_desc_t *hp)
1042 int count = info->pi_logical_provider_count;
1047 handle = info->pi_logical_providers[i];