/third_party/node/deps/openssl/openssl/crypto/bn/ |
H A D | bn_x931p.c | 49 * 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 D | bn_rsa_fips186_4.c | 144 * 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 D | bn_x931p.c | 49 * 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 D | bn_rsa_fips186_4.c | 144 * 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 D | rsa_x931g.c | 27 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 D | rsa_acvp_test_params.c | 101 && !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 D | rsa_sp800_56b_gen.c | 34 * 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 D | rsa_local.h | 37 BIGNUM *Xp; member
|
/third_party/openssl/crypto/rsa/ |
H A D | rsa_x931g.c | 27 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 D | rsa_acvp_test_params.c | 101 && !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 D | rsa_sp800_56b_gen.c | 34 * 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 D | rsa_local.h | 37 BIGNUM *Xp; member
|
/third_party/mbedtls/include/mbedtls/ |
H A D | ecjpake.h | 70 mbedtls_ecp_point MBEDTLS_PRIVATE(Xp); /**< Peer public key C: Xs, S: Xc */
|
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | bn.h | 349 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 D | rsa.h | 247 const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2,
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | bn.h | 103 const BIGNUM *Xp, const BIGNUM *Xp1,
|
/third_party/openssl/include/crypto/ |
H A D | bn.h | 103 const BIGNUM *Xp, const BIGNUM *Xp1,
|
/third_party/node/deps/openssl/openssl/include/openssl/ |
H A D | bn.h | 388 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 D | rsa.h | 271 const BIGNUM *Xp, const BIGNUM *Xq1,
|
/third_party/openssl/include/openssl/ |
H A D | bn.h | 388 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 D | rsa.h | 271 const BIGNUM *Xp, const BIGNUM *Xq1,
|
/third_party/mbedtls/library/ |
H A D | bignum_core.c | 248 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 D | ecjpake.c | 60 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()
|