Lines Matching defs:class

42  * | mech. class    | mech. index    |
97 {0, NULL}, /* No class zero */
171 kcf_ops_class_t class;
255 for (class = KCF_FIRST_OPSCLASS; class <= KCF_LAST_OPSCLASS; class++) {
256 max = kcf_mech_tabs_tab[class].met_size;
257 me_tab = kcf_mech_tabs_tab[class].met_tab;
260 me_tab[i].me_mechid = KCF_MECHID(class, i);
279 * . The class of mechanism.
287 * The'class' argument depends on the crypto_func_group_t bitmask
290 * and a class (dual ops, ...) the KCF_MISC_CLASS should be used.
296 * KCF_INVALID_MECH_CLASS or KCF_INVALID_MECH_NAME if the class or
302 kcf_create_mech_entry(kcf_ops_class_t class, char *mechname)
308 if ((class < KCF_FIRST_OPSCLASS) || (class > KCF_LAST_OPSCLASS))
315 * The mech_entry could be in another class.
320 /* Nothing to do, regardless the suggested class. */
324 /* Now take the next unused mech entry in the class's tab */
325 me_tab = kcf_mech_tabs_tab[class].met_tab;
326 size = kcf_mech_tabs_tab[class].met_size;
335 me_tab[i].me_mechid = KCF_MECHID(class, i);
410 * Find the class corresponding to the function group flag of
416 kcf_ops_class_t class;
419 class = KCF_DIGEST_CLASS;
423 class = KCF_CIPHER_CLASS;
425 class = KCF_MAC_CLASS;
431 class = KCF_SIGN_CLASS;
436 class = KCF_KEYOPS_CLASS;
438 class = KCF_MISC_CLASS;
445 if ((error = kcf_create_mech_entry(class,
760 kcf_ops_class_t class;
766 class = KCF_MECH2CLASS(mech_type);
768 if ((class < KCF_FIRST_OPSCLASS) || (class > KCF_LAST_OPSCLASS)) {
769 /* the caller won't need to know it's an invalid class */
773 me_tab = &kcf_mech_tabs_tab[class];
830 kcf_ops_class_t class;
841 class = KCF_MECH2CLASS(mt);
843 me = &(kcf_mech_tabs_tab[class].met_tab[i]);