/freebsd/crypto/openssl/include/openssl/ |
H A D | params.h | 71 OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key); 72 const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *p, const char *key); 75 OSSL_PARAM OSSL_PARAM_construct_int(const char *key, int *buf); 76 OSSL_PARAM OSSL_PARAM_construct_uint(const char *key, unsigned int *buf); 77 OSSL_PARAM OSSL_PARAM_construct_long(const char *key, long int *buf); 78 OSSL_PARAM OSSL_PARAM_construct_ulong(const char *key, unsigned long int *buf); 79 OSSL_PARAM OSSL_PARAM_construct_int32(const char *key, int32_t *buf); 80 OSSL_PARAM OSSL_PARAM_construct_uint32(const char *key, uint32_t *buf); 81 OSSL_PARAM OSSL_PARAM_construct_int64(const char *key, int64_t *buf); 82 OSSL_PARAM OSSL_PARAM_construct_uint64(const char *key, uint64_t *buf); [all …]
|
H A D | core_dispatch.h | 72 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, 76 OSSL_PARAM params[])) 260 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, 264 OSSL_PARAM params[])) 347 OSSL_CORE_MAKE_FUNC(int, digest_init, (void *dctx, const OSSL_PARAM params[])) 364 OSSL_CORE_MAKE_FUNC(int, digest_get_params, (OSSL_PARAM params[])) 366 (void *vctx, const OSSL_PARAM params[])) 368 (void *vctx, OSSL_PARAM params[])) 369 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, digest_gettable_params, 371 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, digest_settable_ctx_params, [all …]
|
H A D | kdf.h | 45 const OSSL_PARAM params[]); 46 int EVP_KDF_get_params(EVP_KDF *kdf, OSSL_PARAM params[]); 47 int EVP_KDF_CTX_get_params(EVP_KDF_CTX *ctx, OSSL_PARAM params[]); 48 int EVP_KDF_CTX_set_params(EVP_KDF_CTX *ctx, const OSSL_PARAM params[]); 49 const OSSL_PARAM *EVP_KDF_gettable_params(const EVP_KDF *kdf); 50 const OSSL_PARAM *EVP_KDF_gettable_ctx_params(const EVP_KDF *kdf); 51 const OSSL_PARAM *EVP_KDF_settable_ctx_params(const EVP_KDF *kdf); 52 const OSSL_PARAM *EVP_KDF_CTX_gettable_params(EVP_KDF_CTX *ctx); 53 const OSSL_PARAM *EVP_KDF_CTX_settable_params(EVP_KDF_CTX *ctx);
|
/freebsd/crypto/openssl/crypto/ |
H A D | params_dup.c | 47 void ossl_param_set_secure_block(OSSL_PARAM *last, void *secure_buffer, in ossl_param_set_secure_block() 56 static OSSL_PARAM *ossl_param_dup(const OSSL_PARAM *src, OSSL_PARAM *dst, in ossl_param_dup() 60 const OSSL_PARAM *in; in ossl_param_dup() 98 OSSL_PARAM *OSSL_PARAM_dup(const OSSL_PARAM *src) in OSSL_PARAM_dup() 102 OSSL_PARAM *last, *dst; in OSSL_PARAM_dup() 130 dst = (OSSL_PARAM *)buf[OSSL_PARAM_BUF_PUBLIC].alloc; in OSSL_PARAM_dup() 140 const OSSL_PARAM *l = *(const OSSL_PARAM **)left; in compare_params() 141 const OSSL_PARAM *r = *(const OSSL_PARAM **)right; in compare_params() 146 OSSL_PARAM *OSSL_PARAM_merge(const OSSL_PARAM *p1, const OSSL_PARAM *p2) in OSSL_PARAM_merge() 148 const OSSL_PARAM *list1[OSSL_PARAM_MERGE_LIST_MAX + 1]; in OSSL_PARAM_merge() [all …]
|
H A D | params.c | 53 OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key) in OSSL_PARAM_locate() 62 const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *p, const char *key) in OSSL_PARAM_locate_const() 64 return OSSL_PARAM_locate((OSSL_PARAM *)p, key); in OSSL_PARAM_locate_const() 67 static OSSL_PARAM ossl_param_construct(const char *key, unsigned int data_type, in ossl_param_construct() 70 OSSL_PARAM res; in ossl_param_construct() 80 int OSSL_PARAM_modified(const OSSL_PARAM *p) in OSSL_PARAM_modified() 85 void OSSL_PARAM_set_all_unmodified(OSSL_PARAM *p) in OSSL_PARAM_set_all_unmodified() 198 static int general_get_int(const OSSL_PARAM *p, void *val, size_t val_size) in general_get_int() 213 static int general_set_int(OSSL_PARAM *p, void *val, size_t val_size) in general_set_int() 232 static int general_get_uint(const OSSL_PARAM *p, void *val, size_t val_size) in general_get_uint() [all …]
|
/freebsd/crypto/openssl/providers/implementations/keymgmt/ |
H A D | ec_kmgmt_imexport.inc | 14 static const OSSL_PARAM ec_private_key_types[] = { 18 static const OSSL_PARAM ec_public_key_types[] = { 22 static const OSSL_PARAM ec_key_types[] = { 27 static const OSSL_PARAM ec_dom_parameters_types[] = { 31 static const OSSL_PARAM ec_5_types[] = { 36 static const OSSL_PARAM ec_6_types[] = { 41 static const OSSL_PARAM ec_key_domp_types[] = { 47 static const OSSL_PARAM ec_other_parameters_types[] = { 51 static const OSSL_PARAM ec_9_types[] = { 56 static const OSSL_PARAM ec_10_types[] = { [all …]
|
H A D | template_kmgmt.c | 136 OSSL_PARAM params[], int include_private) in key_to_params() 150 OSSL_PARAM *params = NULL; in template_export() 184 const OSSL_PARAM params[], in ossl_template_key_fromdata() 187 const OSSL_PARAM *param_priv_key = NULL, *param_pub_key; in ossl_template_key_fromdata() 215 static int template_import(void *key, int selection, const OSSL_PARAM params[]) in template_import() 238 static const OSSL_PARAM template_key_types[] = { 243 static const OSSL_PARAM *template_imexport_types(int selection) in template_imexport_types() 251 static int template_get_params(void *key, OSSL_PARAM params[]) in template_get_params() 253 OSSL_PARAM *p; in template_get_params() 280 static const OSSL_PARAM template_gettable_params_arr[] = { [all …]
|
H A D | mac_legacy_kmgmt.c | 182 static int mac_key_fromdata(MAC_KEY *key, const OSSL_PARAM params[]) in mac_key_fromdata() 184 const OSSL_PARAM *p; in mac_key_fromdata() 225 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() 239 OSSL_PARAM params[]) in key_to_params() 272 OSSL_PARAM *params = NULL; in mac_export() 300 static const OSSL_PARAM mac_key_types[] = { 305 static const OSSL_PARAM *mac_imexport_types(int selection) in mac_imexport_types() 312 static const OSSL_PARAM cmac_key_types[] = { 319 static const OSSL_PARAM *cmac_imexport_types(int selection) in cmac_imexport_types() 326 static int mac_get_params(void *key, OSSL_PARAM params[]) in mac_get_params() [all …]
|
H A D | ecx_kmgmt.c | 196 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() 215 OSSL_PARAM params[], int include_private) in key_to_params() 240 OSSL_PARAM *params = NULL; in ecx_export() 275 static const OSSL_PARAM ecx_key_types[] = { 279 static const OSSL_PARAM *ecx_imexport_types(int selection) in ecx_imexport_types() 286 static int ecx_get_params(void *key, OSSL_PARAM params[], int bits, int secbits, in ecx_get_params() 290 OSSL_PARAM *p; in ecx_get_params() 321 static int ed_get_params(void *key, OSSL_PARAM params[]) in ed_get_params() 323 OSSL_PARAM *p; in ed_get_params() 332 static int x25519_get_params(void *key, OSSL_PARAM params[]) in x25519_get_params() [all …]
|
H A D | dh_kmgmt.c | 191 static int dh_import(void *keydata, int selection, const OSSL_PARAM params[]) in dh_import() 220 OSSL_PARAM *params = NULL; in dh_export() 272 static const OSSL_PARAM dh_all_types[] = { 278 static const OSSL_PARAM dh_parameter_types[] = { 282 static const OSSL_PARAM dh_key_types[] = { 287 static const OSSL_PARAM *dh_types[] = { 294 static const OSSL_PARAM *dh_imexport_types(int selection) in dh_imexport_types() 305 static const OSSL_PARAM *dh_import_types(int selection) in dh_import_types() 310 static const OSSL_PARAM *dh_export_types(int selection) in dh_export_types() 315 static ossl_inline int dh_get_params(void *key, OSSL_PARAM params[]) in dh_get_params() [all …]
|
H A D | dsa_kmgmt.c | 101 static int dsa_key_todata(DSA *dsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in dsa_key_todata() 194 static int dsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in dsa_import() 223 OSSL_PARAM *params = NULL; in dsa_export() 272 static const OSSL_PARAM dsa_all_types[] = { 278 static const OSSL_PARAM dsa_parameter_types[] = { 282 static const OSSL_PARAM dsa_key_types[] = { 287 static const OSSL_PARAM *dsa_types[] = { 294 static const OSSL_PARAM *dsa_imexport_types(int selection) in dsa_imexport_types() 305 static const OSSL_PARAM *dsa_import_types(int selection) in dsa_import_types() 310 static const OSSL_PARAM *dsa_export_types(int selection) in dsa_export_types() [all …]
|
/freebsd/crypto/openssl/include/internal/ |
H A D | param_build_set.h | 25 void ossl_param_set_secure_block(OSSL_PARAM *last, void *secure_buffer, 28 int ossl_param_build_set_int(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 30 int ossl_param_build_set_long(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 32 int ossl_param_build_set_utf8_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 34 int ossl_param_build_set_octet_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 38 int ossl_param_build_set_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 40 int ossl_param_build_set_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 42 int ossl_param_build_set_signed_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 44 int ossl_param_build_set_signed_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, 47 int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
|
/freebsd/crypto/openssl/test/ |
H A D | evp_kdf_test.c | 37 static OSSL_PARAM *construct_tls1_prf_params(const char *digest, const char *secret, in construct_tls1_prf_params() 40 OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 4); in construct_tls1_prf_params() 41 OSSL_PARAM *p = params; in construct_tls1_prf_params() 64 OSSL_PARAM *params; in test_kdf_tls1_prf() 86 OSSL_PARAM *params; in test_kdf_tls1_prf_invalid_digest() 104 OSSL_PARAM *params; in test_kdf_tls1_prf_zero_output_size() 124 OSSL_PARAM *params; in test_kdf_tls1_prf_empty_secret() 142 OSSL_PARAM *params; in test_kdf_tls1_prf_1byte_secret() 160 OSSL_PARAM *params; in test_kdf_tls1_prf_empty_seed() 180 OSSL_PARAM *params; in test_kdf_tls1_prf_1byte_seed() [all …]
|
H A D | fake_cipherprov.c | 29 static int ctx_from_key_params(PROV_CIPHER_FAKE_CTX *pctx, const OSSL_PARAM *params) in ctx_from_key_params() 31 const OSSL_PARAM *p; in ctx_from_key_params() 64 static void *fake_skeymgmt_import(void *provctx, int selection, const OSSL_PARAM *p) in fake_skeymgmt_import() 82 OSSL_PARAM params[3]; in fake_skeymgmt_export() 84 OSSL_PARAM *p = params; in fake_skeymgmt_export() 130 const OSSL_PARAM params[]) in fake_skey_init() 141 const OSSL_PARAM params[]) in fake_skey_einit() 154 const OSSL_PARAM params[]) in fake_skey_dinit() 190 static int fake_get_params(OSSL_PARAM params[]) in fake_get_params() 193 OSSL_PARAM *p; in fake_get_params() [all …]
|
H A D | fake_rsaprov.c | 84 const OSSL_PARAM *p) in fake_rsa_keymgmt_import() 132 OSSL_PARAM *fake_rsa_key_params(int priv) in fake_rsa_key_params() 135 OSSL_PARAM params[] = { in fake_rsa_key_params() 156 OSSL_PARAM params[] = { in fake_rsa_key_params() 170 OSSL_PARAM *params = NULL; in fake_rsa_keymgmt_export() 184 static const OSSL_PARAM fake_rsa_import_key_types[] = { 196 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection) in fake_rsa_keymgmt_imptypes() 204 static const OSSL_PARAM fake_rsa_export_key_types[] = { 210 static const OSSL_PARAM *fake_rsa_keymgmt_exptypes(int selection) in fake_rsa_keymgmt_exptypes() 236 const OSSL_PARAM params[]) in fake_rsa_gen_init() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OSSL_PARAM_int.pod | 35 - OSSL_PARAM helpers 64 OSSL_PARAM OSSL_PARAM_construct_TYPE(const char *key, TYPE *buf); 65 OSSL_PARAM OSSL_PARAM_construct_BN(const char *key, unsigned char *buf, 67 OSSL_PARAM OSSL_PARAM_construct_utf8_string(const char *key, char *buf, 69 OSSL_PARAM OSSL_PARAM_construct_octet_string(const char *key, void *buf, 71 OSSL_PARAM OSSL_PARAM_construct_utf8_ptr(const char *key, char **buf, 73 OSSL_PARAM OSSL_PARAM_construct_octet_ptr(const char *key, void **buf, 75 OSSL_PARAM OSSL_PARAM_construct_end(void); 77 OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *array, const char *key); 78 const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *array, [all …]
|
H A D | OSSL_PARAM_BLD.pod | 15 - functions to assist in the creation of OSSL_PARAM arrays 26 OSSL_PARAM *OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD *bld); 48 A collection of utility functions that simplify the creation of OSSL_PARAM 59 I<bld> into an allocated OSSL_PARAM array. 60 The OSSL_PARAM array and all associated storage must be freed by calling 73 OSSL_PARAM objects of the specified size and correct type for the I<val> 78 get the OSSL_PARAM type B<OSSL_PARAM_INTEGER> params. 79 When B<I<TYPE>> denotes an unsigned integer type will get the OSSL_PARAM type 82 OSSL_PARAM_BLD_push_BN() is a function that will create an OSSL_PARAM object 84 When the I<bn> is zero or positive, its OSSL_PARAM type becomes [all …]
|
H A D | OSSL_PARAM_dup.pod | 6 - OSSL_PARAM array copy functions 12 OSSL_PARAM *OSSL_PARAM_dup(const OSSL_PARAM *params); 13 OSSL_PARAM *OSSL_PARAM_merge(const OSSL_PARAM *params, const OSSL_PARAM *params1); 14 void OSSL_PARAM_free(OSSL_PARAM *params); 19 L<OSSL_PARAM(3)>. The following utility functions allow the parameters to be 20 duplicated and merged with other L<OSSL_PARAM(3)> to assist in this process. 40 L<OSSL_PARAM(3)> array, or NULL if there was an error. If both parameters are NULL 45 L<OSSL_PARAM(3)>, L<OSSL_PARAM_BLD(3)>
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_null.c | 42 const OSSL_PARAM params[]) in null_einit() 56 const OSSL_PARAM params[]) in null_dinit() 103 static int null_get_params(OSSL_PARAM params[]) in null_get_params() 108 static const OSSL_PARAM null_known_gettable_ctx_params[] = { 116 static const OSSL_PARAM *null_gettable_ctx_params(ossl_unused void *cctx, in null_gettable_ctx_params() 123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) in null_get_ctx_params() 126 OSSL_PARAM *p; in null_get_ctx_params() 147 static const OSSL_PARAM null_known_settable_ctx_params[] = { 153 static const OSSL_PARAM *null_settable_ctx_params(ossl_unused void *cctx, in null_settable_ctx_params() 161 static int null_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in null_set_ctx_params() [all …]
|
H A D | cipher_chacha20.c | 87 static int chacha20_get_params(OSSL_PARAM params[]) in chacha20_get_params() 95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() 97 OSSL_PARAM *p; in chacha20_get_ctx_params() 113 static const OSSL_PARAM chacha20_known_gettable_ctx_params[] = { 118 const OSSL_PARAM *chacha20_gettable_ctx_params(ossl_unused void *cctx, in chacha20_gettable_ctx_params() 124 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in chacha20_set_ctx_params() 126 const OSSL_PARAM *p; in chacha20_set_ctx_params() 157 static const OSSL_PARAM chacha20_known_settable_ctx_params[] = { 162 const OSSL_PARAM *chacha20_settable_ctx_params(ossl_unused void *cctx, in chacha20_settable_ctx_params() 170 const OSSL_PARAM params[]) in ossl_chacha20_einit() [all …]
|
H A D | cipher_rc4_hmac_md5.c | 86 size_t ivlen, const OSSL_PARAM params[]) in rc4_hmac_md5_einit() 95 size_t ivlen, const OSSL_PARAM params[]) in rc4_hmac_md5_dinit() 102 static const OSSL_PARAM rc4_hmac_md5_known_gettable_ctx_params[] = { 108 const OSSL_PARAM *rc4_hmac_md5_gettable_ctx_params(ossl_unused void *cctx, in rc4_hmac_md5_gettable_ctx_params() 114 static int rc4_hmac_md5_get_ctx_params(void *vctx, OSSL_PARAM params[]) in rc4_hmac_md5_get_ctx_params() 117 OSSL_PARAM *p; in rc4_hmac_md5_get_ctx_params() 138 static const OSSL_PARAM rc4_hmac_md5_known_settable_ctx_params[] = { 144 const OSSL_PARAM *rc4_hmac_md5_settable_ctx_params(ossl_unused void *cctx, in rc4_hmac_md5_settable_ctx_params() 150 static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in rc4_hmac_md5_set_ctx_params() 153 const OSSL_PARAM *p; in rc4_hmac_md5_set_ctx_params() [all …]
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_acvp_test_params.c | 16 int ossl_rsa_acvp_test_gen_params_new(OSSL_PARAM **dst, const OSSL_PARAM src[]) in ossl_rsa_acvp_test_gen_params_new() 18 const OSSL_PARAM *p, *s; in ossl_rsa_acvp_test_gen_params_new() 19 OSSL_PARAM *d, *alloc = NULL; in ossl_rsa_acvp_test_gen_params_new() 22 static const OSSL_PARAM settable[] = { in ossl_rsa_acvp_test_gen_params_new() 65 void ossl_rsa_acvp_test_gen_params_free(OSSL_PARAM *dst) in ossl_rsa_acvp_test_gen_params_free() 67 OSSL_PARAM *p; in ossl_rsa_acvp_test_gen_params_free() 79 int ossl_rsa_acvp_test_set_params(RSA *r, const OSSL_PARAM params[]) in ossl_rsa_acvp_test_set_params() 82 const OSSL_PARAM *p; in ossl_rsa_acvp_test_set_params() 125 int ossl_rsa_acvp_test_get_params(RSA *r, OSSL_PARAM params[]) in ossl_rsa_acvp_test_get_params() 128 OSSL_PARAM *p; in ossl_rsa_acvp_test_get_params()
|
/freebsd/crypto/openssl/providers/implementations/signature/ |
H A D | dsa_sig.c | 279 const OSSL_PARAM params[], int operation, in dsa_signverify_init() 319 static int dsa_sign_init(void *vpdsactx, void *vdsa, const OSSL_PARAM params[]) in dsa_sign_init() 433 const OSSL_PARAM params[]) in dsa_verify_init() 456 OSSL_PARAM params[2]; in dsa_verify_set_sig() 511 void *vdsa, const OSSL_PARAM params[], in dsa_digest_signverify_init() 549 void *vdsa, const OSSL_PARAM params[]) in dsa_digest_sign_init() 590 void *vdsa, const OSSL_PARAM params[]) in dsa_digest_verify_init() 672 static int dsa_get_ctx_params(void *vpdsactx, OSSL_PARAM *params) in dsa_get_ctx_params() 675 OSSL_PARAM *p; in dsa_get_ctx_params() 700 static const OSSL_PARAM known_gettable_ctx_params[] = { [all …]
|
/freebsd/crypto/openssl/providers/implementations/macs/ |
H A D | cmac_prov.c | 130 static int tdes_check_param(struct cmac_data_st *macctx, OSSL_PARAM *p, in tdes_check_param() 153 OSSL_PARAM *p = NULL; in cmac_setkey() 156 OSSL_PARAM prms[2] = { OSSL_PARAM_END, OSSL_PARAM_END }; in cmac_setkey() 171 size_t keylen, const OSSL_PARAM params[]) in cmac_init() 202 static const OSSL_PARAM known_gettable_ctx_params[] = { 208 static const OSSL_PARAM *cmac_gettable_ctx_params(ossl_unused void *ctx, in cmac_gettable_ctx_params() 214 static int cmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[]) in cmac_get_ctx_params() 216 OSSL_PARAM *p; in cmac_get_ctx_params() 231 static const OSSL_PARAM known_settable_ctx_params[] = { 238 static const OSSL_PARAM *cmac_settable_ctx_params(ossl_unused void *ctx, in cmac_settable_ctx_params() [all …]
|
H A D | poly1305_prov.c | 94 size_t keylen, const OSSL_PARAM params[]) in poly1305_init() 134 static const OSSL_PARAM known_gettable_params[] = { 138 static const OSSL_PARAM *poly1305_gettable_params(void *provctx) in poly1305_gettable_params() 143 static int poly1305_get_params(OSSL_PARAM params[]) in poly1305_get_params() 145 OSSL_PARAM *p; in poly1305_get_params() 153 static const OSSL_PARAM known_settable_ctx_params[] = { 157 static const OSSL_PARAM *poly1305_settable_ctx_params(ossl_unused void *ctx, in poly1305_settable_ctx_params() 163 static int poly1305_set_ctx_params(void *vmacctx, const OSSL_PARAM *params) in poly1305_set_ctx_params() 166 const OSSL_PARAM *p; in poly1305_set_ctx_params()
|