Lines Matching refs:info

79  * to copy the ops vector from the provider info structure to the
82 * framework does not require the provider info structure to be
131 crypto_register_provider(crypto_provider_info_t *info,
140 if (info->pi_interface_version > CRYPTO_SPI_VERSION_4) {
148 if (info->pi_provider_type != CRYPTO_HW_PROVIDER &&
149 info->pi_provider_type != CRYPTO_SW_PROVIDER &&
150 info->pi_provider_type != CRYPTO_LOGICAL_PROVIDER)
157 prov_desc = kcf_alloc_provider_desc(info);
160 prov_desc->pd_prov_type = info->pi_provider_type;
163 prov_desc->pd_prov_handle = info->pi_provider_handle;
166 if (info->pi_provider_description != NULL) {
175 bcopy(info->pi_provider_description, prov_desc->pd_description,
176 min(strlen(info->pi_provider_description),
180 if (info->pi_provider_type != CRYPTO_LOGICAL_PROVIDER) {
181 if (info->pi_ops_vector == NULL) {
184 copy_ops_vector_v1(info->pi_ops_vector,
186 if (info->pi_interface_version >= CRYPTO_SPI_VERSION_2) {
187 copy_ops_vector_v2(info->pi_ops_vector,
189 prov_desc->pd_flags = info->pi_flags;
191 if (info->pi_interface_version >= CRYPTO_SPI_VERSION_3) {
192 copy_ops_vector_v3(info->pi_ops_vector,
195 if (info->pi_interface_version == CRYPTO_SPI_VERSION_4) {
196 copy_ops_vector_v4(info->pi_ops_vector,
210 switch (info->pi_provider_type) {
212 if (info->pi_provider_dev.pd_sw == NULL)
215 if ((mcp = mod_getctl(info->pi_provider_dev.pd_sw)) == NULL)
224 if (info->pi_provider_dev.pd_hw == NULL)
228 ddi_get_instance(info->pi_provider_dev.pd_hw);
229 name = (char *)ddi_driver_name(info->pi_provider_dev.pd_hw);
238 if ((prov_desc->pd_mctlp = kcf_get_modctl(info)) == NULL)
242 if ((ret = init_prov_mechs(info, prov_desc)) != CRYPTO_SUCCESS)
354 process_logical_providers(info, prov_desc);
378 info->pi_provider_description);
384 info->pi_provider_description);
390 info->pi_provider_description);
397 info->pi_provider_description,
398 info->pi_interface_version);
404 "validation error.", info->pi_provider_description);
410 info->pi_provider_description, ret);
729 * Process the mechanism info structures specified by the provider
741 init_prov_mechs(crypto_provider_info_t *info, kcf_provider_desc_t *desc)
751 if (info != NULL) {
752 ASSERT(info->pi_mechanisms != NULL);
753 bcopy(info->pi_mechanisms, desc->pd_mechanisms,
760 * Copy the mechanism list from the provider info to the provider
765 if (info != NULL) {
766 if (info->pi_ops_vector->co_random_ops != NULL) {
774 if (info->pi_mechanisms != NULL) {
775 bcopy(info->pi_mechanisms, desc->pd_mechanisms,
785 ASSERT(info->pi_mechanisms != NULL);
786 bcopy(info->pi_mechanisms, desc->pd_mechanisms,
980 process_logical_providers(crypto_provider_info_t *info, kcf_provider_desc_t *hp)
984 int count = info->pi_logical_provider_count;
989 handle = info->pi_logical_providers[i];