/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 | 64 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, 68 OSSL_PARAM params[])) 232 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, 236 OSSL_PARAM params[])) 288 OSSL_CORE_MAKE_FUNC(int, digest_init, (void *dctx, const OSSL_PARAM params[])) 301 OSSL_CORE_MAKE_FUNC(int, digest_get_params, (OSSL_PARAM params[])) 303 (void *vctx, const OSSL_PARAM params[])) 305 (void *vctx, OSSL_PARAM params[])) 306 OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, digest_gettable_params, 308 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 | 50 void ossl_param_set_secure_block(OSSL_PARAM *last, void *secure_buffer, in ossl_param_set_secure_block() 59 static OSSL_PARAM *ossl_param_dup(const OSSL_PARAM *src, OSSL_PARAM *dst, in ossl_param_dup() 63 const OSSL_PARAM *in; in ossl_param_dup() 101 OSSL_PARAM *OSSL_PARAM_dup(const OSSL_PARAM *src) in OSSL_PARAM_dup() 105 OSSL_PARAM *last, *dst; in OSSL_PARAM_dup() 131 dst = (OSSL_PARAM *)buf[OSSL_PARAM_BUF_PUBLIC].alloc; in OSSL_PARAM_dup() 141 const OSSL_PARAM *l = *(const OSSL_PARAM **)left; in compare_params() 142 const OSSL_PARAM *r = *(const OSSL_PARAM **)right; in compare_params() 147 OSSL_PARAM *OSSL_PARAM_merge(const OSSL_PARAM *p1, const OSSL_PARAM *p2) in OSSL_PARAM_merge() 149 const OSSL_PARAM *list1[OSSL_PARAM_MERGE_LIST_MAX + 1]; in OSSL_PARAM_merge() [all …]
|
H A D | params.c | 29 OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key) in OSSL_PARAM_locate() 38 const OSSL_PARAM *OSSL_PARAM_locate_const(const OSSL_PARAM *p, const char *key) in OSSL_PARAM_locate_const() 40 return OSSL_PARAM_locate((OSSL_PARAM *)p, key); in OSSL_PARAM_locate_const() 43 static OSSL_PARAM ossl_param_construct(const char *key, unsigned int data_type, in ossl_param_construct() 46 OSSL_PARAM res; in ossl_param_construct() 56 int OSSL_PARAM_modified(const OSSL_PARAM *p) in OSSL_PARAM_modified() 61 void OSSL_PARAM_set_all_unmodified(OSSL_PARAM *p) in OSSL_PARAM_set_all_unmodified() 168 static int general_get_int(const OSSL_PARAM *p, void *val, size_t val_size) in general_get_int() 178 static int general_set_int(OSSL_PARAM *p, void *val, size_t val_size) in general_set_int() 194 static int general_get_uint(const OSSL_PARAM *p, void *val, size_t val_size) in general_get_uint() [all …]
|
H A D | param_build_set.c | 22 int ossl_param_build_set_int(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in DEFINE_SPECIAL_STACK_OF_CONST() 33 int ossl_param_build_set_long(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_long() 44 int ossl_param_build_set_utf8_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_utf8_string() 55 int ossl_param_build_set_octet_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_octet_string() 69 int ossl_param_build_set_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_bn_pad() 84 int ossl_param_build_set_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_bn() 96 int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *params, in ossl_param_build_set_multi_key_bn() 101 OSSL_PARAM *p; in ossl_param_build_set_multi_key_bn()
|
/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 | mac_legacy_kmgmt.c | 184 static int mac_key_fromdata(MAC_KEY *key, const OSSL_PARAM params[]) in mac_key_fromdata() 186 const OSSL_PARAM *p; in mac_key_fromdata() 231 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() 245 OSSL_PARAM params[]) in key_to_params() 278 OSSL_PARAM *params = NULL; in mac_export() 306 static const OSSL_PARAM mac_key_types[] = { 311 static const OSSL_PARAM *mac_imexport_types(int selection) in mac_imexport_types() 318 static const OSSL_PARAM cmac_key_types[] = { 325 static const OSSL_PARAM *cmac_imexport_types(int selection) in cmac_imexport_types() 332 static int mac_get_params(void *key, OSSL_PARAM params[]) in mac_get_params() [all …]
|
H A D | ecx_kmgmt.c | 191 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() 210 OSSL_PARAM params[], int include_private) in key_to_params() 235 OSSL_PARAM *params = NULL; in ecx_export() 270 static const OSSL_PARAM ecx_key_types[] = { 274 static const OSSL_PARAM *ecx_imexport_types(int selection) in ecx_imexport_types() 281 static int ecx_get_params(void *key, OSSL_PARAM params[], int bits, int secbits, in ecx_get_params() 285 OSSL_PARAM *p; in ecx_get_params() 306 static int ed_get_params(void *key, OSSL_PARAM params[]) in ed_get_params() 308 OSSL_PARAM *p; in ed_get_params() 317 static int x25519_get_params(void *key, OSSL_PARAM params[]) in x25519_get_params() [all …]
|
H A D | dh_kmgmt.c | 190 static int dh_import(void *keydata, int selection, const OSSL_PARAM params[]) in dh_import() 219 OSSL_PARAM *params = NULL; in dh_export() 271 static const OSSL_PARAM dh_all_types[] = { 277 static const OSSL_PARAM dh_parameter_types[] = { 281 static const OSSL_PARAM dh_key_types[] = { 286 static const OSSL_PARAM *dh_types[] = { 293 static const OSSL_PARAM *dh_imexport_types(int selection) in dh_imexport_types() 304 static const OSSL_PARAM *dh_import_types(int selection) in dh_import_types() 309 static const OSSL_PARAM *dh_export_types(int selection) in dh_export_types() 314 static ossl_inline int dh_get_params(void *key, OSSL_PARAM params[]) in dh_get_params() [all …]
|
/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_rsaprov.c | 78 const OSSL_PARAM *p) in fake_rsa_keymgmt_import() 126 OSSL_PARAM *fake_rsa_key_params(int priv) in fake_rsa_key_params() 129 OSSL_PARAM params[] = { in fake_rsa_key_params() 150 OSSL_PARAM params[] = { in fake_rsa_key_params() 164 OSSL_PARAM *params = NULL; in fake_rsa_keymgmt_export() 178 static const OSSL_PARAM fake_rsa_import_key_types[] = { 190 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection) in fake_rsa_keymgmt_imptypes() 198 static const OSSL_PARAM fake_rsa_export_key_types[] = { 204 static const OSSL_PARAM *fake_rsa_keymgmt_exptypes(int selection) in fake_rsa_keymgmt_exptypes() 230 const OSSL_PARAM params[]) in fake_rsa_gen_init() [all …]
|
H A D | tls-provider.c | 133 static const OSSL_PARAM xor_group_params[] = { 152 static const OSSL_PARAM xor_kemgroup_params[] = { 200 OSSL_PARAM dummygroup[OSSL_NELEM(xor_group_params)]; in tls_prov_get_capabilities() 249 ossl_unused const OSSL_PARAM params[]) in xor_init() 519 static ossl_inline int xor_get_params(void *vkey, OSSL_PARAM params[]) in xor_get_params() 522 OSSL_PARAM *p; in xor_get_params() 544 static const OSSL_PARAM xor_params[] = { 551 static const OSSL_PARAM *xor_gettable_params(void *provctx) in xor_set_params() 556 static int xor_set_params(void *vkey, const OSSL_PARAM params[]) in xor_set_params() 559 const OSSL_PARAM * in xor_set_params() [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_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)>
|
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> 77 OSSL_PARAM_BLD_push_BN() is a function that will create an OSSL_PARAM object 79 If I<bn> is marked as being securely allocated, its OSSL_PARAM representation 84 OSSL_PARAM_BLD_push_BN_pad() is a function that will create an OSSL_PARAM object 88 If I<bn> is marked as being securely allocated, its OSSL_PARAM representation [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_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
|
/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/macs/ |
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()
|
/freebsd/crypto/openssl/providers/implementations/signature/ |
H A D | dsa_sig.c | 187 const OSSL_PARAM params[], int operation) in dsa_signverify_init() 220 static int dsa_sign_init(void *vpdsactx, void *vdsa, const OSSL_PARAM params[]) in dsa_sign_init() 226 const OSSL_PARAM params[]) in dsa_verify_init() 275 void *vdsa, const OSSL_PARAM params[], in dsa_digest_signverify_init() 309 void *vdsa, const OSSL_PARAM params[]) in dsa_digest_sign_init() 316 void *vdsa, const OSSL_PARAM params[]) in dsa_digest_verify_init() 444 static int dsa_get_ctx_params(void *vpdsactx, OSSL_PARAM *params) in dsa_get_ctx_params() 447 OSSL_PARAM *p; in dsa_get_ctx_params() 464 static const OSSL_PARAM known_gettable_ctx_params[] = { 470 static const OSSL_PARAM *dsa_gettable_ctx_params(ossl_unused void *ctx, in dsa_gettable_ctx_params() [all …]
|
H A D | ecdsa_sig.c | 129 const OSSL_PARAM params[], int operation) in ecdsa_signverify_init() 159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_sign_init() 164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_verify_init() 282 void *ec, const OSSL_PARAM params[], in ecdsa_digest_signverify_init() 312 const OSSL_PARAM params[]) in ecdsa_digest_sign_init() 319 const OSSL_PARAM params[]) in ecdsa_digest_verify_init() 438 static int ecdsa_get_ctx_params(void *vctx, OSSL_PARAM *params) in ecdsa_get_ctx_params() 441 OSSL_PARAM *p; in ecdsa_get_ctx_params() 463 static const OSSL_PARAM known_gettable_ctx_params[] = { 470 static const OSSL_PARAM *ecdsa_gettable_ctx_params(ossl_unused void *vctx, in ecdsa_gettable_ctx_params() [all …]
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | rsa.h | 68 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], 70 int ossl_rsa_fromdata(RSA *rsa, const OSSL_PARAM params[], int include_private); 72 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]); 75 const OSSL_PARAM params[], 118 int ossl_rsa_acvp_test_gen_params_new(OSSL_PARAM **dst, const OSSL_PARAM src[]); 119 void ossl_rsa_acvp_test_gen_params_free(OSSL_PARAM *dst); 121 int ossl_rsa_acvp_test_set_params(RSA *r, const OSSL_PARAM params[]); 122 int ossl_rsa_acvp_test_get_params(RSA *r, OSSL_PARAM params[]);
|