Home
last modified time | relevance | path

Searched refs:p1 (Results 1 – 25 of 63) sorted by relevance

123

/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c38 p1 = BN_CTX_get(ctx); in ossl_rsa_check_crt_components()
51 && BN_sub_word(p1, 1) in ossl_rsa_check_crt_components()
74 BN_clear(p1); in ossl_rsa_check_crt_components()
139 BIGNUM *p1 = NULL, *gcd = NULL; in ossl_rsa_check_prime_factor() local
148 p1 = BN_CTX_get(ctx); in ossl_rsa_check_prime_factor()
159 && (BN_copy(p1, p) != NULL) in ossl_rsa_check_prime_factor()
160 && BN_sub_word(p1, 1) in ossl_rsa_check_prime_factor()
161 && BN_gcd(gcd, p1, e, ctx) in ossl_rsa_check_prime_factor()
164 BN_clear(p1); in ossl_rsa_check_prime_factor()
186 p1 = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
[all …]
H A Drsa_pmeth.c456 if ((p1 >= RSA_PKCS1_PADDING) && (p1 <= RSA_PKCS1_PSS_PADDING)) { in pkey_rsa_ctrl()
474 rctx->pad_mode = p1; in pkey_rsa_ctrl()
509 || (p1 >= 0 && p1 < rctx->min_saltlen)) { in pkey_rsa_ctrl()
514 rctx->saltlen = p1; in pkey_rsa_ctrl()
519 if (p1 < RSA_MIN_MODULUS_BITS) { in pkey_rsa_ctrl()
523 rctx->nbits = p1; in pkey_rsa_ctrl()
536 if (p1 < RSA_DEFAULT_PRIME_NUM || p1 > RSA_MAX_PRIME_NUM) { in pkey_rsa_ctrl()
540 rctx->primes = p1; in pkey_rsa_ctrl()
600 if (p2 && p1 > 0) { in pkey_rsa_ctrl()
602 rctx->oaep_labellen = p1; in pkey_rsa_ctrl()
[all …]
H A Drsa_sp800_56b_gen.c63 BIGNUM *p1 = NULL, *p2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() local
77 p1 = test->p1; in ossl_rsa_fips186_4_gen_prob_primes()
122 if (!ossl_bn_rsa_fips186_4_gen_prob_primes(rsa->p, Xpo, p1, p2, Xp, Xp1, Xp2, in ossl_rsa_fips186_4_gen_prob_primes()
241 BIGNUM *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_sp800_56b_derive_params_from_pq() local
243 p1 = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
251 BN_set_flags(p1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
258 if (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, p1q1) != 1) in ossl_rsa_sp800_56b_derive_params_from_pq()
299 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
337 BN_clear(p1); in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_mp.c62 BIGNUM *p1 = NULL, *p2 = NULL; in ossl_rsa_multip_calc_product() local
75 p1 = rsa->p; in ossl_rsa_multip_calc_product()
85 if (!BN_mul(pinfo->pp, p1, p2, ctx)) in ossl_rsa_multip_calc_product()
88 p1 = pinfo->pp; in ossl_rsa_multip_calc_product()
H A Drsa_acvp_test_params.c114 t->p1 = BN_new(); in ossl_rsa_acvp_test_set_params()
136 && !OSSL_PARAM_set_BN(p, t->p1)) in ossl_rsa_acvp_test_get_params()
160 BN_free(t->p1); in ossl_rsa_acvp_test_free()
/openssl/crypto/dh/
H A Ddh_pmeth.c120 if (p1 < 256) in pkey_dh_ctrl()
122 dctx->prime_len = p1; in pkey_dh_ctrl()
132 dctx->pad = p1; in pkey_dh_ctrl()
138 dctx->generator = p1; in pkey_dh_ctrl()
146 if (p1 < 0 || p1 > 2) in pkey_dh_ctrl()
153 if (p1 < 1 || p1 > 3 || dctx->param_nid != NID_undef) in pkey_dh_ctrl()
155 dctx->param_nid = p1; in pkey_dh_ctrl()
169 if (p1 == -2) in pkey_dh_ctrl()
171 if (p1 != EVP_PKEY_DH_KDF_NONE && p1 != EVP_PKEY_DH_KDF_X9_42) in pkey_dh_ctrl()
173 dctx->kdf_type = p1; in pkey_dh_ctrl()
[all …]
/openssl/crypto/objects/
H A Dobjxref.pl43 my ($xr, $p1, $p2) = /^(\S+)\s+(\S+)\s+(\S+)/;
45 check_oid($p1);
47 $xref_tbl{$xr} = [$p1, $p2, $ln];
102 my ($p1, $p2) = @{$xref_tbl{$_}};
103 my $o1 = " {NID_$xr, NID_$p1,";
124 my ($p1, $p2, $x) = @{$xref_tbl{$_}};
127 next if $p1 eq "undef" || $p2 eq "undef";
/openssl/crypto/rc2/
H A Drc2_cbc.c97 register RC2_INT *p0, *p1; in RC2_encrypt() local
111 p0 = p1 = &(key->data[0]); in RC2_encrypt()
127 x0 += p1[x3 & 0x3f]; in RC2_encrypt()
128 x1 += p1[x0 & 0x3f]; in RC2_encrypt()
129 x2 += p1[x1 & 0x3f]; in RC2_encrypt()
130 x3 += p1[x2 & 0x3f]; in RC2_encrypt()
143 register RC2_INT *p0, *p1; in RC2_decrypt() local
158 p1 = &(key->data[0]); in RC2_decrypt()
174 x3 = (x3 - p1[x2 & 0x3f]) & 0xffff; in RC2_decrypt()
175 x2 = (x2 - p1[x1 & 0x3f]) & 0xffff; in RC2_decrypt()
[all …]
/openssl/crypto/bn/
H A Dbn_x931p.c53 int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, in BN_X931_derive_prime_ex() argument
67 if (p1 == NULL) in BN_X931_derive_prime_ex()
68 p1 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
82 if (!bn_x931_derive_pi(p1, Xp1, ctx, cb)) in BN_X931_derive_prime_ex()
88 if (!BN_mul(p1p2, p1, p2, ctx)) in BN_X931_derive_prime_ex()
93 if (!BN_mod_inverse(p, p2, p1, ctx)) in BN_X931_derive_prime_ex()
99 if (!BN_mod_inverse(t, p1, p2, ctx)) in BN_X931_derive_prime_ex()
102 if (!BN_mul(t, t, p1, ctx)) in BN_X931_derive_prime_ex()
219 int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, in BN_X931_generate_prime_ex() argument
238 if (!BN_X931_derive_prime_ex(p, p1, p2, Xp, Xp1, Xp2, e, ctx, cb)) in BN_X931_generate_prime_ex()
H A Dbn_rsa_fips186_4.c133 BIGNUM *p1, BN_CTX *ctx, in bn_rsa_fips186_4_find_aux_prob_prime() argument
141 if (BN_copy(p1, Xp1) == NULL) in bn_rsa_fips186_4_find_aux_prob_prime()
143 BN_set_flags(p1, BN_FLG_CONSTTIME); in bn_rsa_fips186_4_find_aux_prob_prime()
150 tmp = ossl_bn_check_generated_prime(p1, rounds, ctx, cb); in bn_rsa_fips186_4_find_aux_prob_prime()
156 if (!BN_add_word(p1, 2)) in bn_rsa_fips186_4_find_aux_prob_prime()
185 BIGNUM *p1, BIGNUM *p2, in ossl_bn_rsa_fips186_4_gen_prob_primes() argument
200 p1i = (p1 != NULL) ? p1 : BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_gen_prob_primes()
242 if (p1 == NULL) in ossl_bn_rsa_fips186_4_gen_prob_primes()
H A Dbn_exp2.c16 int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1, in BN_mod_exp2_mont() argument
30 bn_check_top(p1); in BN_mod_exp2_mont()
39 bits1 = BN_num_bits(p1); in BN_mod_exp2_mont()
143 if (BN_is_bit_set(p1, b)) { in BN_mod_exp2_mont()
148 while (!BN_is_bit_set(p1, i)) /* works for i<0 */ in BN_mod_exp2_mont()
154 if (BN_is_bit_set(p1, i)) in BN_mod_exp2_mont()
/openssl/crypto/evp/
H A Dctrl_params_translate.c189 int p1; member
790 ctx->p1 = 1; in fix_cipher_md()
793 ctx->p1 = 0; in fix_cipher_md()
1011 ctx->p1 = 0; in fix_dh_nid()
1039 ctx->p1 = 0; in fix_dh_nid5114()
1051 ctx->p1 = 0; in fix_dh_nid5114()
1113 ctx->p1 = 0; in fix_ec_param_enc()
1219 if (ctx->p1 < -1 || ctx->p1 > 1) { in fix_ecdh_cofactor()
1229 if (ctx->p1 < 0 || ctx->p1 > 1) { in fix_ecdh_cofactor()
1812 ctx->p1 = val; in get_payload_int()
[all …]
H A Dlegacy_sha.c67 static int sha1_int_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2) in IMPLEMENT_LEGACY_EVP_MD_METH()
70 cmd, p1, p2); in IMPLEMENT_LEGACY_EVP_MD_METH()
73 static int shake_ctrl(EVP_MD_CTX *evp_ctx, int cmd, int p1, void *p2) in shake_ctrl() argument
83 ctx->md_size = p1; in shake_ctrl()
/openssl/crypto/ec/
H A Dec_pmeth.c272 if (p1 == -2) { in pkey_ec_ctrl()
279 } else if (p1 < -1 || p1 > 1) in pkey_ec_ctrl()
281 dctx->cofactor_mode = p1; in pkey_ec_ctrl()
282 if (p1 != -1) { in pkey_ec_ctrl()
303 if (p1) in pkey_ec_ctrl()
315 if (p1 == -2) in pkey_ec_ctrl()
317 if (p1 != EVP_PKEY_ECDH_KDF_NONE && p1 != EVP_PKEY_ECDH_KDF_X9_63) in pkey_ec_ctrl()
319 dctx->kdf_type = p1; in pkey_ec_ctrl()
331 if (p1 <= 0) in pkey_ec_ctrl()
333 dctx->kdf_outlen = (size_t)p1; in pkey_ec_ctrl()
[all …]
/openssl/crypto/bio/
H A Dbf_buff.c240 char *p1, *p2; in buffer_ctrl() local
266 p1 = ctx->ibuf; in buffer_ctrl()
292 p1 = OPENSSL_malloc((size_t)num); in buffer_ctrl()
293 if (p1 == NULL) in buffer_ctrl()
296 ctx->ibuf = p1; in buffer_ctrl()
318 p1 = ctx->ibuf; in buffer_ctrl()
324 if (p1 == NULL) in buffer_ctrl()
330 if (p1 != ctx->ibuf) in buffer_ctrl()
331 OPENSSL_free(p1); in buffer_ctrl()
335 if (ctx->ibuf != p1) { in buffer_ctrl()
[all …]
/openssl/crypto/dsa/
H A Ddsa_pmeth.c133 static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dsa_ctrl() argument
139 if (p1 < 256) in pkey_dsa_ctrl()
141 dctx->nbits = p1; in pkey_dsa_ctrl()
145 if (p1 != 160 && p1 != 224 && p1 && p1 != 256) in pkey_dsa_ctrl()
147 dctx->qbits = p1; in pkey_dsa_ctrl()
/openssl/providers/implementations/ciphers/
H A Dcipher_rc2.c109 OSSL_PARAM *p, *p1, *p2; in rc2_get_ctx_params() local
118 p1 = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS); in rc2_get_ctx_params()
120 if (p1 != NULL || p2 != NULL) { in rc2_get_ctx_params()
124 unsigned char *d1 = (p1 == NULL) ? NULL : p1->data; in rc2_get_ctx_params()
129 if ((p1 != NULL && p1->data_type != OSSL_PARAM_OCTET_STRING) in rc2_get_ctx_params()
153 if (p1 != NULL && i >= 0) in rc2_get_ctx_params()
154 p1->return_size = (size_t)i; in rc2_get_ctx_params()
H A Dcipher_aes_cbc_hmac_sha.c128 const OSSL_PARAM *p1 = OSSL_PARAM_locate_const(params, in aes_set_ctx_params() local
131 || p1 == NULL in aes_set_ctx_params()
132 || !OSSL_PARAM_get_uint(p1, &mb_param.interleave)) { in aes_set_ctx_params()
153 const OSSL_PARAM *p1 = OSSL_PARAM_locate_const(params, in aes_set_ctx_params() local
161 || p1 == NULL in aes_set_ctx_params()
162 || !OSSL_PARAM_get_uint(p1, &mb_param.interleave)) { in aes_set_ctx_params()
/openssl/crypto/ffc/
H A Dffc_backend.c101 const OSSL_PARAM *p1; in ossl_ffc_params_fromdata() local
106 p1 = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_FFC_DIGEST_PROPS); in ossl_ffc_params_fromdata()
107 if (p1 != NULL) { in ossl_ffc_params_fromdata()
108 if (p1->data_type != OSSL_PARAM_UTF8_STRING) in ossl_ffc_params_fromdata()
110 props = p1->data; in ossl_ffc_params_fromdata()
/openssl/crypto/perlasm/
H A Dcbc.pl35 local($name,$enc_func,$dec_func,$swap,$iv_off,$enc_off,$p1,$p2,$p3)=@_;
57 $data_off+=4 if ($p1 > 0);
96 if ($p1 > 0)
98 &comment("get and push parameter $p1");
99 if ($enc_off != $p1)
100 { &mov("eax", &wparam($p1)); &push("eax"); }
327 $total+=4 if ($p1 > 0);
/openssl/crypto/
H A Dparams_dup.c146 OSSL_PARAM *OSSL_PARAM_merge(const OSSL_PARAM *p1, const OSSL_PARAM *p2) in OSSL_PARAM_merge() argument
156 if (p1 == NULL && p2 == NULL) { in OSSL_PARAM_merge()
162 if (p1 != NULL) { in OSSL_PARAM_merge()
163 for (p = p1; p->key != NULL && list1_sz < OSSL_PARAM_MERGE_LIST_MAX; p++) in OSSL_PARAM_merge()
184 params = OPENSSL_zalloc((list1_sz + list2_sz + 1) * sizeof(*p1)); in OSSL_PARAM_merge()
/openssl/test/
H A Dparam_build_test.c89 OSSL_PARAM *params = NULL, *params_blt = NULL, *p1 = NULL, *p; in template_public_test() local
137 p1 = OSSL_PARAM_merge(params_blt, params_empty); in template_public_test()
138 params = OSSL_PARAM_dup(p1); in template_public_test()
141 p1 = OSSL_PARAM_dup(params_blt); in template_public_test()
142 params = OSSL_PARAM_merge(p1, params_empty); in template_public_test()
217 OPENSSL_free(p1); in template_public_test()
292 p1 = OSSL_PARAM_merge(params_blt, params_empty); in template_private_test()
293 params = OSSL_PARAM_dup(p1); in template_private_test()
296 p1 = OSSL_PARAM_dup(params_blt); in template_private_test()
297 params = OSSL_PARAM_merge(p1, params_empty); in template_private_test()
[all …]
H A Dparams_test.c43 int p1; member
106 obj->p1 = p1_init; in init_object()
136 obj->p1 = *(int *)params->data; in raw_set_params()
177 params->return_size = sizeof(obj->p1); in raw_get_params()
178 *(int *)params->data = obj->p1; in raw_get_params()
215 && !TEST_true(OSSL_PARAM_get_int(p, &obj->p1))) in api_set_params()
251 && !TEST_true(OSSL_PARAM_set_int(p, obj->p1))) in api_get_params()
489 if (!TEST_int_eq(sneakpeek->p1, app_p1) /* app value set */ in test_case_variant()
/openssl/crypto/md2/
H A Dmd2_dgst.c160 register MD2_INT *p1, *p2; in MD2_Final() local
163 p1 = c->state; in MD2_Final()
176 md[i] = (UCHAR) (p1[i] & 0xff); in MD2_Final()
/openssl/doc/man3/
H A DBN_mod_exp_mont.pod20 const BIGNUM *p1, const BIGNUM *m1,
41 the I<p1>-th power modulo I<m1> (C<rr1=a1^p1 % m1>) and I<a2> to the I<p2>-th

Completed in 56 milliseconds

123