Lines Matching full:selection

58     int selection;  member
101 static int mlx_kem_has(const void *vkey, int selection) in mlx_kem_has() argument
109 switch (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) { in mlx_kem_has()
119 static int mlx_kem_match(const void *vkey1, const void *vkey2, int selection) in mlx_kem_match() argument
133 if (!(selection & OSSL_KEYMGMT_SELECT_KEYPAIR)) in mlx_kem_match()
207 export_sub(EXPORT_CB_ARG *sub_arg, int selection, MLX_KEY *key) in export_sub() argument
238 if (!EVP_PKEY_export(pkey, selection, export_sub_cb, (void *)sub_arg)) in export_sub()
244 static int mlx_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb, in mlx_kem_export() argument
258 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in mlx_kem_export()
270 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in mlx_kem_export()
277 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in mlx_kem_export()
293 if (!export_sub(&sub_arg, selection, key)) in mlx_kem_export()
320 static const OSSL_PARAM *mlx_kem_imexport_types(int selection) in mlx_kem_imexport_types() argument
328 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in mlx_kem_imexport_types()
335 int selection, MLX_KEY *key, int slot, const uint8_t *in, in load_slot() argument
369 if (EVP_PKEY_fromdata(ctx, ppkey, selection, parr) > 0) in load_slot()
460 static int mlx_kem_import(void *vkey, int selection, const OSSL_PARAM params[]) in mlx_kem_import() argument
468 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in mlx_kem_import()
471 include_private = selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in mlx_kem_import()
497 int selection; in mlx_kem_get_params() local
562 selection = prv == NULL ? 0 : OSSL_KEYMGMT_SELECT_PRIVATE_KEY; in mlx_kem_get_params()
563 selection |= pub == NULL ? 0 : OSSL_KEYMGMT_SELECT_PUBLIC_KEY; in mlx_kem_get_params()
565 selection |= OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS; in mlx_kem_get_params()
568 if (!export_sub(&sub_arg, selection, key)) in mlx_kem_get_params()
652 int selection, const OSSL_PARAM params[]) in mlx_kem_gen_init() argument
657 * We can only generate private keys, check that the selection is in mlx_kem_gen_init()
661 || (selection & minimal_selection) == 0 in mlx_kem_gen_init()
667 gctx->selection = selection; in mlx_kem_gen_init()
693 || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == in mlx_kem_gen()
703 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in mlx_kem_gen()
731 static void *mlx_kem_dup(const void *vkey, int selection) in mlx_kem_dup() argument
755 switch (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) { in mlx_kem_dup()
785 static void *mlx_##name##_kem_gen_init(void *provctx, int selection, \
791 return mlx_kem_gen_init(variant, libctx, selection, params); \