Lines Matching refs:selection
83 int selection; member
127 static int ecx_has(const void *keydata, int selection) in ecx_has() argument
139 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ecx_has()
142 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ecx_has()
148 static int ecx_match(const void *keydata1, const void *keydata2, int selection) in ecx_match() argument
157 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ecx_match()
159 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match()
162 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_match()
177 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_match()
196 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() argument
205 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ecx_import()
208 include_private = selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in ecx_import()
235 static int ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in ecx_export() argument
246 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ecx_export()
253 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_export()
254 int include_private = ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0); in ecx_export()
279 static const OSSL_PARAM *ecx_imexport_types(int selection) in ecx_imexport_types() argument
281 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in ecx_imexport_types()
489 static void *ecx_gen_init(void *provctx, int selection, in ecx_gen_init() argument
502 gctx->selection = selection; in ecx_gen_init()
519 static void *x25519_gen_init(void *provctx, int selection, in x25519_gen_init() argument
522 return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_X25519, "X25519"); in x25519_gen_init()
525 static void *x448_gen_init(void *provctx, int selection, in x448_gen_init() argument
528 return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_X448, "X448"); in x448_gen_init()
531 static void *ed25519_gen_init(void *provctx, int selection, in ed25519_gen_init() argument
534 return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_ED25519, NULL); in ed25519_gen_init()
537 static void *ed448_gen_init(void *provctx, int selection, in ed448_gen_init() argument
540 return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_ED448, NULL); in ed448_gen_init()
695 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ecx_gen()
797 if (!key || ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)) in ed25519_gen()
830 if (!key || ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)) in ed448_gen()
865 static void *ecx_dup(const void *keydata_from, int selection) in ecx_dup() argument
868 return ossl_ecx_key_dup(keydata_from, selection); in ecx_dup()
936 static int ecx_validate(const void *keydata, int selection, int type, in ecx_validate() argument
945 if ((selection & ECX_POSSIBLE_SELECTIONS) == 0) in ecx_validate()
953 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_validate()
960 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ecx_validate()
963 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != OSSL_KEYMGMT_SELECT_KEYPAIR) in ecx_validate()
974 static int x25519_validate(const void *keydata, int selection, int checktype) in x25519_validate() argument
976 return ecx_validate(keydata, selection, ECX_KEY_TYPE_X25519, X25519_KEYLEN); in x25519_validate()
979 static int x448_validate(const void *keydata, int selection, int checktype) in x448_validate() argument
981 return ecx_validate(keydata, selection, ECX_KEY_TYPE_X448, X448_KEYLEN); in x448_validate()
984 static int ed25519_validate(const void *keydata, int selection, int checktype) in ed25519_validate() argument
986 return ecx_validate(keydata, selection, ECX_KEY_TYPE_ED25519, ED25519_KEYLEN); in ed25519_validate()
989 static int ed448_validate(const void *keydata, int selection, int checktype) in ed448_validate() argument
991 return ecx_validate(keydata, selection, ECX_KEY_TYPE_ED448, ED448_KEYLEN); in ed448_validate()
1045 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in MAKE_KEYMGMT_FUNCTIONS()
1102 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in s390x_ecx_keygen448()
1165 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in s390x_ecd_keygen25519()
1232 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in s390x_ecd_keygen448()