Home
last modified time | relevance | path

Searched refs:Xp (Results 1 - 23 of 23) sorted by relevance

/third_party/node/deps/openssl/openssl/crypto/bn/
H A Dbn_x931p.c49 * and Xp derive the prime p. If the parameters p1 or p2 are not NULL they
54 const BIGNUM *Xp, const BIGNUM *Xp1, in BN_X931_derive_prime_ex()
113 if (!BN_mod_sub(p, p, Xp, p1p2, ctx)) in BN_X931_derive_prime_ex()
116 if (!BN_add(p, p, Xp)) in BN_X931_derive_prime_ex()
158 * Generate pair of parameters Xp, Xq for X9.31 prime generation. Note: nbits
162 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx) in BN_X931_generate_Xpq() argument
174 * The random value Xp must be between sqrt(2) * 2^(nbits-1) and 2^nbits in BN_X931_generate_Xpq()
178 if (!BN_priv_rand_ex(Xp, nbits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ANY, 0, in BN_X931_generate_Xpq()
192 /* Check that |Xp - Xq| > 2^(nbits - 100) */ in BN_X931_generate_Xpq()
193 if (!BN_sub(t, Xp, X in BN_X931_generate_Xpq()
53 BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb) BN_X931_derive_prime_ex() argument
219 BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1, BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb) BN_X931_generate_prime_ex() argument
[all...]
H A Dbn_rsa_fips186_4.c144 * Xp An optional passed in value (that is random number used during
156 const BIGNUM *Xp, const BIGNUM *Xp1, in ossl_bn_rsa_fips186_4_gen_prob_primes()
205 if (!ossl_bn_rsa_fips186_4_derive_prime(p, Xpout, Xp, p1i, p2i, nlen, e, in ossl_bn_rsa_fips186_4_gen_prob_primes()
154 ossl_bn_rsa_fips186_4_gen_prob_primes(BIGNUM *p, BIGNUM *Xpout, BIGNUM *p1, BIGNUM *p2, const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2, int nlen, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb) ossl_bn_rsa_fips186_4_gen_prob_primes() argument
/third_party/openssl/crypto/bn/
H A Dbn_x931p.c49 * and Xp derive the prime p. If the parameters p1 or p2 are not NULL they
54 const BIGNUM *Xp, const BIGNUM *Xp1, in BN_X931_derive_prime_ex()
113 if (!BN_mod_sub(p, p, Xp, p1p2, ctx)) in BN_X931_derive_prime_ex()
116 if (!BN_add(p, p, Xp)) in BN_X931_derive_prime_ex()
158 * Generate pair of parameters Xp, Xq for X9.31 prime generation. Note: nbits
162 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx) in BN_X931_generate_Xpq() argument
174 * The random value Xp must be between sqrt(2) * 2^(nbits-1) and 2^nbits in BN_X931_generate_Xpq()
178 if (!BN_priv_rand_ex(Xp, nbits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ANY, 0, in BN_X931_generate_Xpq()
192 /* Check that |Xp - Xq| > 2^(nbits - 100) */ in BN_X931_generate_Xpq()
193 if (!BN_sub(t, Xp, X in BN_X931_generate_Xpq()
53 BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb) BN_X931_derive_prime_ex() argument
219 BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1, BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb) BN_X931_generate_prime_ex() argument
[all...]
H A Dbn_rsa_fips186_4.c144 * Xp An optional passed in value (that is random number used during
156 const BIGNUM *Xp, const BIGNUM *Xp1, in ossl_bn_rsa_fips186_4_gen_prob_primes()
205 if (!ossl_bn_rsa_fips186_4_derive_prime(p, Xpout, Xp, p1i, p2i, nlen, e, in ossl_bn_rsa_fips186_4_gen_prob_primes()
154 ossl_bn_rsa_fips186_4_gen_prob_primes(BIGNUM *p, BIGNUM *Xpout, BIGNUM *p1, BIGNUM *p2, const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2, int nlen, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb) ossl_bn_rsa_fips186_4_gen_prob_primes() argument
/third_party/node/deps/openssl/openssl/crypto/rsa/
H A Drsa_x931g.c27 const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2, in RSA_X931_derive_ex()
62 if (Xp && rsa->p == NULL) { in RSA_X931_derive_ex()
68 Xp, Xp1, Xp2, e, ctx, cb)) in RSA_X931_derive_ex()
155 BIGNUM *Xp = NULL, *Xq = NULL; in RSA_X931_generate_key_ex() local
163 Xp = BN_CTX_get(ctx); in RSA_X931_generate_key_ex()
167 if (!BN_X931_generate_Xpq(Xp, Xq, bits, ctx)) in RSA_X931_generate_key_ex()
175 /* Generate two primes from Xp, Xq */ in RSA_X931_generate_key_ex()
177 if (!BN_X931_generate_prime_ex(rsa->p, NULL, NULL, NULL, NULL, Xp, in RSA_X931_generate_key_ex()
25 RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2, const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb) RSA_X931_derive_ex() argument
H A Drsa_acvp_test_params.c101 && !OSSL_PARAM_get_BN(p, &t->Xp)) in ossl_rsa_acvp_test_set_params()
156 BN_free(t->Xp); in ossl_rsa_acvp_test_free()
H A Drsa_sp800_56b_gen.c34 * Xp An optional passed in value (that is random number used during
54 * Xp, Xp1, Xp2, Xq, Xq1, Xq2 are optionally passed in.
69 BIGNUM *Xp = NULL, *Xp1 = NULL, *Xp2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() local
78 Xp = test->Xp; in ossl_rsa_fips186_4_gen_prob_primes()
124 /* (Step 4) Generate p, Xp */ in ossl_rsa_fips186_4_gen_prob_primes()
125 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()
134 /* (Step 6) |Xp - Xq| > 2^(nbitlen/2 - 100) */ in ossl_rsa_fips186_4_gen_prob_primes()
H A Drsa_local.h37 BIGNUM *Xp; member
/third_party/openssl/crypto/rsa/
H A Drsa_x931g.c27 const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2, in RSA_X931_derive_ex()
62 if (Xp && rsa->p == NULL) { in RSA_X931_derive_ex()
68 Xp, Xp1, Xp2, e, ctx, cb)) in RSA_X931_derive_ex()
155 BIGNUM *Xp = NULL, *Xq = NULL; in RSA_X931_generate_key_ex() local
163 Xp = BN_CTX_get(ctx); in RSA_X931_generate_key_ex()
167 if (!BN_X931_generate_Xpq(Xp, Xq, bits, ctx)) in RSA_X931_generate_key_ex()
175 /* Generate two primes from Xp, Xq */ in RSA_X931_generate_key_ex()
177 if (!BN_X931_generate_prime_ex(rsa->p, NULL, NULL, NULL, NULL, Xp, in RSA_X931_generate_key_ex()
25 RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2, const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb) RSA_X931_derive_ex() argument
H A Drsa_acvp_test_params.c101 && !OSSL_PARAM_get_BN(p, &t->Xp)) in ossl_rsa_acvp_test_set_params()
156 BN_free(t->Xp); in ossl_rsa_acvp_test_free()
H A Drsa_sp800_56b_gen.c34 * Xp An optional passed in value (that is random number used during
54 * Xp, Xp1, Xp2, Xq, Xq1, Xq2 are optionally passed in.
69 BIGNUM *Xp = NULL, *Xp1 = NULL, *Xp2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() local
78 Xp = test->Xp; in ossl_rsa_fips186_4_gen_prob_primes()
124 /* (Step 4) Generate p, Xp */ in ossl_rsa_fips186_4_gen_prob_primes()
125 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()
134 /* (Step 6) |Xp - Xq| > 2^(nbitlen/2 - 100) */ in ossl_rsa_fips186_4_gen_prob_primes()
H A Drsa_local.h37 BIGNUM *Xp; member
/third_party/mbedtls/include/mbedtls/
H A Decjpake.h70 mbedtls_ecp_point MBEDTLS_PRIVATE(Xp); /**< Peer public key C: Xs, S: Xc */
/third_party/openssl/ohos_lite/include/openssl/
H A Dbn.h349 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
352 const BIGNUM *Xp, const BIGNUM *Xp1,
356 BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e,
H A Drsa.h247 const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2,
/third_party/node/deps/openssl/openssl/include/crypto/
H A Dbn.h103 const BIGNUM *Xp, const BIGNUM *Xp1,
/third_party/openssl/include/crypto/
H A Dbn.h103 const BIGNUM *Xp, const BIGNUM *Xp1,
/third_party/node/deps/openssl/openssl/include/openssl/
H A Dbn.h388 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
392 const BIGNUM *Xp, const BIGNUM *Xp1,
397 BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e,
H A Drsa.h271 const BIGNUM *Xp, const BIGNUM *Xq1,
/third_party/openssl/include/openssl/
H A Dbn.h388 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
392 const BIGNUM *Xp, const BIGNUM *Xp1,
397 BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e,
H A Drsa.h271 const BIGNUM *Xp, const BIGNUM *Xq1,
/third_party/mbedtls/library/
H A Dbignum_core.c248 unsigned char *Xp = (unsigned char *) X; in mbedtls_mpi_core_read_be() local
249 memcpy(Xp + overhead, input, input_length); in mbedtls_mpi_core_read_be()
H A Decjpake.c60 mbedtls_ecp_point_init(&ctx->Xp); in mbedtls_ecjpake_init()
83 mbedtls_ecp_point_free(&ctx->Xp); in mbedtls_ecjpake_free()
583 * We need that before parsing in order to check Xp as we read it in mbedtls_ecjpake_read_round_two()
604 &G, &ctx->Xp, ID_PEER, &p, end)); in mbedtls_ecjpake_read_round_two()
742 * Unified: K = ( Xp - Xp2 * xm2 * s ) * xm2 in mbedtls_ecjpake_derive_k()
747 &one, &ctx->Xp, in mbedtls_ecjpake_derive_k()

Completed in 20 milliseconds