/openssl/crypto/ec/ |
H A D | ecx_s390x.c | 88 } param; in s390x_x25519_mul() local 91 memset(¶m, 0, sizeof(param)); in s390x_x25519_mul() 121 } param; in s390x_x448_mul() local 124 memset(¶m, 0, sizeof(param)); in s390x_x448_mul() 129 s390x_flip_endian64(param.x448.u_src, param.x448.u_src); in s390x_x448_mul() 132 s390x_flip_endian64(param.x448.d_src, param.x448.d_src); in s390x_x448_mul() 161 } param; in s390x_ed25519_mul() local 164 memset(¶m, 0, sizeof(param)); in s390x_ed25519_mul() 195 } param; in s390x_ed448_mul() local 198 memset(¶m, 0, sizeof(param)); in s390x_ed448_mul() [all …]
|
H A D | ecp_s390x_nistp.c | 53 unsigned char param[S390X_SIZE_PARAM]; in ec_GFp_s390x_nistp_mul() local 97 memset(¶m, 0, sizeof(param)); in ec_GFp_s390x_nistp_mul() 105 || s390x_pcc(fc, param) != 0 in ec_GFp_s390x_nistp_mul() 119 OPENSSL_cleanse(param, sizeof(param)); in ec_GFp_s390x_nistp_mul() 132 unsigned char param[S390X_SIZE_PARAM]; in ecdsa_s390x_nistp_sign_sig() local 166 memset(param, 0, sizeof(param)); in ecdsa_s390x_nistp_sign_sig() 202 if (s390x_kdsa(fc, param, NULL, 0) != 0) { in ecdsa_s390x_nistp_sign_sig() 215 OPENSSL_cleanse(param, sizeof(param)); in ecdsa_s390x_nistp_sign_sig() 228 unsigned char param[S390X_SIZE_PARAM]; in ecdsa_s390x_nistp_verify_sig() local 263 memset(param, 0, sizeof(param)); in ecdsa_s390x_nistp_verify_sig() [all …]
|
H A D | ecx_meth.c | 1198 } param; in s390x_pkey_ecd_digestsign25519() local 1217 memset(¶m, 0, sizeof(param)); in s390x_pkey_ecd_digestsign25519() 1243 } param; in s390x_pkey_ecd_digestsign448() local 1262 memset(¶m, 0, sizeof(param)); in s390x_pkey_ecd_digestsign448() 1270 s390x_flip_endian64(param.ed448.sig, param.ed448.sig); in s390x_pkey_ecd_digestsign448() 1291 } param; in s390x_pkey_ecd_digestverify25519() local 1302 memset(¶m, 0, sizeof(param)); in s390x_pkey_ecd_digestverify25519() 1323 } param; in s390x_pkey_ecd_digestverify448() local 1334 memset(¶m, 0, sizeof(param)); in s390x_pkey_ecd_digestverify448() 1336 s390x_flip_endian64(param.ed448.sig, param.ed448.sig); in s390x_pkey_ecd_digestverify448() [all …]
|
/openssl/crypto/x509/ |
H A D | x509_vpm.c | 86 param = OPENSSL_zalloc(sizeof(*param)); in X509_VERIFY_PARAM_new() 87 if (param == NULL) in X509_VERIFY_PARAM_new() 91 param->depth = -1; in X509_VERIFY_PARAM_new() 93 return param; in X509_VERIFY_PARAM_new() 98 if (param == NULL) in X509_VERIFY_PARAM_free() 105 OPENSSL_free(param); in X509_VERIFY_PARAM_free() 438 return int_x509_param_set1(¶m->email, ¶m->emaillen, in X509_VERIFY_PARAM_set1_email() 445 if (param == NULL || param->ip == NULL) { in int_X509_VERIFY_PARAM_get0_ip() 451 return param->ip; in int_X509_VERIFY_PARAM_get0_ip() 469 return int_x509_param_set1((char **)¶m->ip, ¶m->iplen, in X509_VERIFY_PARAM_set1_ip() [all …]
|
H A D | x509_vfy.c | 193 if (ctx->param->auth_level <= 0) in check_auth_level() 1752 ctx->param->policies, ctx->param->flags); in check_policy() 2415 ctx->param->trust = trust; in X509_STORE_CTX_purpose_inherit() 2559 if (ctx->param == NULL) { in X509_STORE_CTX_init() 2567 else if (X509_VERIFY_PARAM_inherit(ctx->param, store->param) == 0) in X509_STORE_CTX_init() 2623 if (ctx->param != NULL) { in X509_STORE_CTX_cleanup() 2626 ctx->param = NULL; in X509_STORE_CTX_cleanup() 2790 if (param == NULL) { in X509_STORE_CTX_set_default() 2794 return X509_VERIFY_PARAM_inherit(ctx->param, param); in X509_STORE_CTX_set_default() 2799 return ctx->param; in X509_STORE_CTX_get0_param() [all …]
|
/openssl/test/ |
H A D | params_api_test.c | 209 param.data = &out; in test_param_int() 221 param.data = &out; in test_param_int() 239 param.data = &out; in test_param_long() 251 param.data = &out; in test_param_long() 268 param.data = &out; in test_param_uint() 280 param.data = &out; in test_param_uint() 298 param.data = &out; in test_param_ulong() 310 param.data = &out; in test_param_ulong() 517 param.data_size = param.return_size; in test_param_bignum() 554 param.data_size = param.return_size; in test_param_signed_bignum() [all …]
|
H A D | params_conversion_test.c | 24 OSSL_PARAM *param; member 67 if (pc->param == NULL) { in param_conversion_load_stanza() 193 if (!TEST_false(OSSL_PARAM_get_int32(pc->param, &i32)) in param_conversion_test() 199 if (!TEST_true(OSSL_PARAM_get_int32(pc->param, &i32)) in param_conversion_test() 205 if (!TEST_true(OSSL_PARAM_set_int32(pc->param, i32)) in param_conversion_test() 220 if (!TEST_true(OSSL_PARAM_get_int64(pc->param, &i64)) in param_conversion_test() 226 if (!TEST_true(OSSL_PARAM_set_int64(pc->param, i64)) in param_conversion_test() 247 if (!TEST_true(OSSL_PARAM_set_uint32(pc->param, u32)) in param_conversion_test() 268 if (!TEST_true(OSSL_PARAM_set_uint64(pc->param, u64)) in param_conversion_test() 277 if (!TEST_false(OSSL_PARAM_get_double(pc->param, &d)) in param_conversion_test() [all …]
|
H A D | crltest.c | 258 X509_VERIFY_PARAM *param = X509_VERIFY_PARAM_new(); in verify() local 264 || !TEST_ptr(param) in verify() 275 X509_VERIFY_PARAM_set_time(param, PARAM_TIME); in verify() 276 if (!TEST_long_eq((long)X509_VERIFY_PARAM_get_time(param), PARAM_TIME)) in verify() 278 X509_VERIFY_PARAM_set_depth(param, 16); in verify() 280 X509_VERIFY_PARAM_set_flags(param, flags); in verify() 281 X509_STORE_CTX_set0_param(ctx, param); in verify() 282 param = NULL; in verify() 290 X509_VERIFY_PARAM_free(param); in verify()
|
H A D | params_test.c | 618 OSSL_PARAM param; in check_int_from_text() local 622 if (!OSSL_PARAM_allocate_from_text(¶m, params_from_text, in check_int_from_text() 631 if (param.data_size == 0) { in check_int_from_text() 632 OPENSSL_free(param.data); in check_int_from_text() 637 res = OSSL_PARAM_get_long(¶m, &val); in check_int_from_text() 638 OPENSSL_free(param.data); in check_int_from_text() 650 if (param.data_size != a.expected_bufsize) { in check_int_from_text() 662 OSSL_PARAM param; in check_octetstr_from_hexstr() local 673 memset(¶m, 0, sizeof(param)); in check_octetstr_from_hexstr() 676 TEST_true(OSSL_PARAM_allocate_from_text(¶m, in check_octetstr_from_hexstr() [all …]
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_hw_s390x.inc | 39 memcpy(adat->plat.s390x.param.km.k, key, keylen); 50 &adat->plat.s390x.param.km); 85 &adat->plat.s390x.param.kmo_kmf); 92 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 93 adat->plat.s390x.param.kmo_kmf.cv, 95 adat->plat.s390x.param.kmo_kmf.k); 144 &adat->plat.s390x.param.kmo_kmf); 151 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 152 adat->plat.s390x.param.kmo_kmf.cv, 154 adat->plat.s390x.param.kmo_kmf.k); [all …]
|
/openssl/crypto/hmac/ |
H A D | hmac_s390x.c | 67 s390x_kmac(in, len, fc, &ctx->plat.s390x.param); in s390x_call_kmac() 134 ctx->plat.s390x.param.hmac_224_256.imbl = 0; in s390x_HMAC_init() 135 OPENSSL_cleanse(ctx->plat.s390x.param.hmac_224_256.h, in s390x_HMAC_init() 140 ctx->plat.s390x.param.hmac_384_512.imbl = 0; in s390x_HMAC_init() 260 result = &ctx->plat.s390x.param.hmac_224_256.h[0]; in s390x_HMAC_final() 264 result = &ctx->plat.s390x.param.hmac_224_256.h[0]; in s390x_HMAC_final() 268 result = &ctx->plat.s390x.param.hmac_384_512.h[0]; in s390x_HMAC_final() 272 result = &ctx->plat.s390x.param.hmac_384_512.h[0]; in s390x_HMAC_final() 293 memcpy(&dctx->plat.s390x.param, &sctx->plat.s390x.param, in s390x_HMAC_CTX_copy() 294 sizeof(dctx->plat.s390x.param)); in s390x_HMAC_CTX_copy() [all …]
|
/openssl/fuzz/ |
H A D | provider.c | 251 for (; param != NULL && param->key != NULL; param++) { in free_params() 252 switch (param->data_type) { in free_params() 276 for (; param != NULL && param->key != NULL; param++) { in fuzz_params() 293 switch (param->data_type) { in fuzz_params() 312 *p = *param; in fuzz_params() 334 *p = *param; in fuzz_params() 344 *p = *param; in fuzz_params() 351 *p = *param; in fuzz_params() 359 *p = *param; in fuzz_params() 367 *p = *param; in fuzz_params() [all …]
|
H A D | x509.c | 41 X509_VERIFY_PARAM *param = NULL; in FuzzerTestOneInput() local 83 param = X509_VERIFY_PARAM_new(); in FuzzerTestOneInput() 84 X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_NO_CHECK_TIME); in FuzzerTestOneInput() 85 X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_X509_STRICT); in FuzzerTestOneInput() 86 X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_PARTIAL_CHAIN); in FuzzerTestOneInput() 87 X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_CRL_CHECK); in FuzzerTestOneInput() 89 X509_STORE_set1_param(store, param); in FuzzerTestOneInput() 135 X509_VERIFY_PARAM_free(param); in FuzzerTestOneInput()
|
/openssl/util/ |
H A D | withlibctx.pl | 101 my $param = shift @params; 102 my $lensofar += $indent + (length $param) + 1; 104 print "$param"; 108 my $param = shift @params; 110 if (($lensofar + (length $param) + 2) > 80) { 112 print $param; 113 $lensofar = $indent + (length $param) + 1; 115 print ' '.$param; 116 $lensofar += (length $param) + 2;
|
/openssl/providers/implementations/signature/ |
H A D | eddsa_sig.c | 1057 } param; in s390x_ed25519_digestsign() local 1059 memset(¶m, 0, sizeof(param)); in s390x_ed25519_digestsign() 1082 } param; in s390x_ed448_digestsign() local 1084 memset(¶m, 0, sizeof(param)); in s390x_ed448_digestsign() 1092 s390x_flip_endian64(param.ed448.sig, param.ed448.sig); in s390x_ed448_digestsign() 1109 } param; in s390x_ed25519_digestverify() local 1111 memset(¶m, 0, sizeof(param)); in s390x_ed25519_digestverify() 1131 } param; in s390x_ed448_digestverify() local 1133 memset(¶m, 0, sizeof(param)); in s390x_ed448_digestverify() 1135 s390x_flip_endian64(param.ed448.sig, param.ed448.sig); in s390x_ed448_digestverify() [all …]
|
/openssl/crypto/ |
H A D | s390x_arch.h | 18 void *param); 20 size_t outlen, unsigned int fc, void *param); 22 unsigned int fc, void *param); 24 void *param); 26 unsigned int fc, void *param); 28 unsigned int fc, void *param); 30 size_t len, unsigned char *out, unsigned int fc, void *param); 31 int s390x_pcc(unsigned int fc, void *param); 32 int s390x_kdsa(unsigned int fc, void *param, const unsigned char *in,
|
H A D | s390xcpuid.pl | 302 my ($in,$len,$fc,$param) = map("%r$_",(2..5)); 309 lgr %r1,$param 351 l${g}r %r1,$param 365 my ($in,$len,$fc,$param) = map("%r$_",(2..5)); 372 l${g}r %r1,$param 393 l${g}r %r1,$param 414 l${g}r %r1,$param 450 my ($fc,$param) = map("%r$_",(2..3)); 457 l${g}r %r1,$param 476 my ($fc,$param,$in,$len) = map("%r$_",(2..5)); [all …]
|
/openssl/crypto/pkcs12/ |
H A D | p12_mutl.c | 84 PBMAC1PARAM *param = NULL; in PBMAC1_get1_pbkdf2_param() local 89 if (param == NULL) { in PBMAC1_get1_pbkdf2_param() 97 PBMAC1PARAM_free(param); in PBMAC1_get1_pbkdf2_param() 103 PBMAC1PARAM_free(param); in PBMAC1_get1_pbkdf2_param() 311 PBMAC1PARAM *param = NULL; in PKCS12_verify_mac() local 316 if (param == NULL) { in PKCS12_verify_mac() 328 PBMAC1PARAM_free(param); in PKCS12_verify_mac() 448 PBMAC1PARAM *param = NULL; in PKCS12_set_pbmac1_pbkdf2() local 484 param = PBMAC1PARAM_new(); in PKCS12_set_pbmac1_pbkdf2() 503 param->keyDerivationFunc = alg; in PKCS12_set_pbmac1_pbkdf2() [all …]
|
H A D | p12_crpt.c | 24 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS12_PBE_keyivgen_ex() argument 39 pbe = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBEPARAM), param); in PKCS12_PBE_keyivgen_ex() 79 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS12_PBE_keyivgen() argument 82 return PKCS12_PBE_keyivgen_ex(ctx, pass, passlen, param, cipher, md, en_de, in PKCS12_PBE_keyivgen()
|
/openssl/crypto/evp/ |
H A D | p5_crpt.c | 27 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS5_PBE_keyivgen_ex() argument 45 if (param == NULL || param->type != V_ASN1_SEQUENCE || in PKCS5_PBE_keyivgen_ex() 46 param->value.sequence == NULL) { in PKCS5_PBE_keyivgen_ex() 51 pbe = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBEPARAM), param); in PKCS5_PBE_keyivgen_ex() 114 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS5_PBE_keyivgen() argument 117 return PKCS5_PBE_keyivgen_ex(cctx, pass, passlen, param, cipher, md, en_de, in PKCS5_PBE_keyivgen()
|
H A D | p5_crpt2.c | 113 ASN1_TYPE *param, const EVP_CIPHER *c, in PKCS5_v2_PBE_keyivgen_ex() argument 125 pbe2 = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBE2PARAM), param); in PKCS5_v2_PBE_keyivgen_ex() 174 ASN1_TYPE *param, const EVP_CIPHER *c, in PKCS5_v2_PBE_keyivgen() argument 177 return PKCS5_v2_PBE_keyivgen_ex(ctx, pass, passlen, param, c, md, en_de, NULL, NULL); in PKCS5_v2_PBE_keyivgen() 181 int passlen, ASN1_TYPE *param, in PKCS5_v2_PBKDF2_keyivgen_ex() argument 203 kdf = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), param); in PKCS5_v2_PBKDF2_keyivgen_ex() 266 int passlen, ASN1_TYPE *param, in PKCS5_v2_PBKDF2_keyivgen() argument 269 return PKCS5_v2_PBKDF2_keyivgen_ex(ctx, pass, passlen, param, c, md, en_de, in PKCS5_v2_PBKDF2_keyivgen()
|
/openssl/apps/lib/ |
H A D | app_params.c | 13 static int describe_param_type(char *buf, size_t bufsz, const OSSL_PARAM *param) in describe_param_type() argument 20 switch (param->data_type) { in describe_param_type() 45 printed_len = BIO_snprintf(buf, bufsz, "%s: ", param->key); in describe_param_type() 56 printed_len = BIO_snprintf(buf, bufsz, " [%d]", param->data_type); in describe_param_type() 62 if (param->data_size == 0) in describe_param_type() 66 param->data_size); in describe_param_type()
|
/openssl/doc/man3/ |
H A D | X509_VERIFY_PARAM_set_flags.pod | 27 int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, 29 int X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param, 43 int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, 56 int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param, 58 int X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, 65 int X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param, 68 int X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param, 378 X509_VERIFY_PARAM *param; 380 param = X509_VERIFY_PARAM_new(); 382 SSL_CTX_set1_param(ctx, param); [all …]
|
/openssl/crypto/rsa/ |
H A D | rsa_oaep.c | 41 const unsigned char *param, int plen) in RSA_padding_add_PKCS1_OAEP() argument 44 param, plen, NULL, NULL); in RSA_padding_add_PKCS1_OAEP() 57 const unsigned char *param, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument 114 if (!EVP_Digest((void *)param, plen, db, NULL, md, NULL)) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 153 const unsigned char *param, int plen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument 157 param, plen, md, mgf1md); in RSA_padding_add_PKCS1_OAEP_mgf1() 162 const unsigned char *param, int plen) in RSA_padding_check_PKCS1_OAEP() argument 165 param, plen, NULL, NULL); in RSA_padding_check_PKCS1_OAEP() 170 int num, const unsigned char *param, in RSA_padding_check_PKCS1_OAEP_mgf1() argument 268 if (!EVP_Digest((void *)param, plen, phash, NULL, md, NULL)) in RSA_padding_check_PKCS1_OAEP_mgf1()
|
/openssl/include/openssl/ |
H A D | x509_vfy.h.in | 706 void X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param); 712 int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, 714 int X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param, 723 int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, 725 int X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, 733 int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param, 735 int X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, 743 int X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param, 746 int X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param, 748 int X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param, [all …]
|