Lines Matching defs:class
38 * | mech. class | mech. index |
93 {0, NULL}, /* No class zero */
144 kcf_ops_class_t class;
152 for (class = KCF_FIRST_OPSCLASS; class <= KCF_LAST_OPSCLASS; class++) {
153 max = kcf_mech_tabs_tab[class].met_size;
154 me_tab = kcf_mech_tabs_tab[class].met_tab;
170 kcf_ops_class_t class;
251 for (class = KCF_FIRST_OPSCLASS; class <= KCF_LAST_OPSCLASS; class++) {
252 max = kcf_mech_tabs_tab[class].met_size;
253 me_tab = kcf_mech_tabs_tab[class].met_tab;
258 me_tab[i].me_mechid = KCF_MECHID(class, i);
271 * . The class of mechanism.
279 * The'class' argument depends on the crypto_func_group_t bitmask
282 * and a class (dual ops, ...) the KCF_MISC_CLASS should be used.
288 * KCF_INVALID_MECH_CLASS or KCF_INVALID_MECH_NAME if the class or
294 kcf_create_mech_entry(kcf_ops_class_t class, char *mechname)
300 if ((class < KCF_FIRST_OPSCLASS) || (class > KCF_LAST_OPSCLASS))
307 * The mech_entry could be in another class.
312 /* Nothing to do, regardless the suggested class. */
316 /* Now take the next unused mech entry in the class's tab */
317 me_tab = kcf_mech_tabs_tab[class].met_tab;
318 size = kcf_mech_tabs_tab[class].met_size;
327 me_tab[i].me_mechid = KCF_MECHID(class, i);
394 * Find the class corresponding to the function group flag of
400 kcf_ops_class_t class;
403 class = KCF_DIGEST_CLASS;
407 class = KCF_CIPHER_CLASS;
409 class = KCF_MAC_CLASS;
415 class = KCF_SIGN_CLASS;
420 class = KCF_KEYOPS_CLASS;
422 class = KCF_MISC_CLASS;
429 if ((error = kcf_create_mech_entry(class,
748 kcf_ops_class_t class;
754 class = KCF_MECH2CLASS(mech_type);
756 if ((class < KCF_FIRST_OPSCLASS) || (class > KCF_LAST_OPSCLASS)) {
757 /* the caller won't need to know it's an invalid class */
761 me_tab = &kcf_mech_tabs_tab[class];