/openssl-master/test/recipes/10-test_bn_data/ |
A D | bnshift.txt | 1222 N = 1 1226 N = 2 1230 N = 3 1234 N = 4 1238 N = 5 1242 N = 6 1246 N = 7 1250 N = 8 1254 N = 9 1258 N = a [all …]
|
/openssl-master/crypto/srp/ |
A D | srp_lib.c | 31 int numN = BN_num_bytes(N); in srp_Calc_xy() 38 if (x != N && BN_ucmp(x, N) >= 0) in srp_Calc_xy() 40 if (y != N && BN_ucmp(y, N) >= 0) in srp_Calc_xy() 60 return srp_Calc_xy(N, g, N, libctx, propq); in srp_Calc_k() 73 return srp_Calc_xy(A, B, N, NULL, NULL); in SRP_Calc_u() 90 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) in SRP_Calc_server_key() 123 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex() 278 if (!BN_nnmod(r, B, N, bn_ctx)) in SRP_Verify_B_mod_N() 290 return SRP_Verify_B_mod_N(A, N); in SRP_Verify_A_mod_N() 312 if ((g == NULL) || (N == NULL)) in SRP_check_known_gN_param() [all …]
|
A D | srp_vfy.c | 198 ret->N = NULL; in SRP_user_pwd_new() 208 const BIGNUM *N) in SRP_user_pwd_set_gN() argument 210 vinfo->N = N; in SRP_user_pwd_set_gN() 269 SRP_user_pwd_set_gN(ret, src->g, src->N); in srp_user_pwd_dup() 455 SRP_user_pwd_set_gN(user_pwd, lgN->g, lgN->N); in SRP_VBASE_init() 480 vb->default_N = gN->N; in SRP_VBASE_init() 624 if (N) { in SRP_create_verifier_ex() 625 if ((len = t_fromb64(tmp, sizeof(tmp), N)) <= 0) in SRP_create_verifier_ex() 642 N_bn = gN->N; in SRP_create_verifier_ex() 749 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex() [all …]
|
/openssl-master/crypto/bn/asm/ |
A D | x86_64-mont.pl | 446 mov %rdx,$N[1] 455 add %rax,$N[1] 462 mov %rdx,$N[0] 473 add %rax,$N[0] 479 mov %rdx,$N[1] 488 add %rax,$N[1] 559 xor $N[1],$N[1] 561 adc \$0,$N[1] 712 xor $N[1],$N[1] 714 adc \$0,$N[1] [all …]
|
A D | x86_64-mont5.pl | 704 mov %rdx,$N[1] 713 add %rax,$N[1] 721 mov %rdx,$N[0] 734 add %rax,$N[0] 824 xor $N[1],$N[1] 826 adc \$0,$N[1] 1012 xor $N[1],$N[1] 1014 adc \$0,$N[1] 1027 or $j,$N[1] 1028 sub $N[1],%rax # %rax=-$N[1] [all …]
|
A D | sparct4-mont.pl | 112 my @N=(map("%l$_",(0..7)),map("%o$_",(0..5))); @N=(@N,@N,@N[0..3]); 202 ld [$np+$i*8+4],@N[$i] 203 sllx @N[$i],32,@N[$i] 204 or $lo,@N[$i],@N[$i] 214 ld [$np+$i*8+4],@N[$i] 215 sllx @N[$i],32,@N[$i] 216 or $lo,@N[$i],@N[$i] 227 sllx @N[$i],32,@N[$i] 228 or $lo,@N[$i],@N[$i] 515 ldx [$np+$i*8],@N[$i] [all …]
|
/openssl-master/test/ |
A D | srptest.c | 55 test_output_bignum("N", GN->N); in run_srp() 68 Bpub = SRP_Calc_B(b, GN->N, GN->g, v); in run_srp() 71 if (!TEST_true(SRP_Verify_B_mod_N(Bpub, GN->N))) in run_srp() 82 Apub = SRP_Calc_A(a, GN->N, GN->g); in run_srp() 85 if (!TEST_true(SRP_Verify_A_mod_N(Apub, GN->N))) in run_srp() 89 u = SRP_Calc_u(Apub, Bpub, GN->N); in run_srp() 175 Bpub = SRP_Calc_B(b, GN->N, GN->g, v); in run_srp_kat() 176 if (!TEST_true(SRP_Verify_B_mod_N(Bpub, GN->N))) in run_srp_kat() 194 Apub = SRP_Calc_A(a, GN->N, GN->g); in run_srp_kat() 195 if (!TEST_true(SRP_Verify_A_mod_N(Apub, GN->N))) in run_srp_kat() [all …]
|
/openssl-master/ssl/ |
A D | tls_srp.c | 38 BN_free(ctx->srp_ctx.N); in ssl_ctx_srp_ctx_free_intern() 66 BN_free(s->srp_ctx.N); in ssl_srp_ctx_free_intern() 111 ((s->srp_ctx.N = BN_dup(ctx->srp_ctx.N)) == NULL)) || in ssl_srp_ctx_init_intern() 145 BN_free(s->srp_ctx.N); in ssl_srp_ctx_init_intern() 234 s->srp_ctx.N = BN_dup(GN->N); in SSL_set_srp_server_param_pw() 251 if (N != NULL) { in SSL_set_srp_server_param() 253 if (!BN_copy(s->srp_ctx.N, N)) { in SSL_set_srp_server_param() 258 s->srp_ctx.N = BN_dup(N); in SSL_set_srp_server_param() 294 if (!(s->srp_ctx.N) || in SSL_set_srp_server_param() 390 if (BN_ucmp(srp->g, srp->N) >= 0 || BN_ucmp(srp->B, srp->N) >= 0 in srp_verify_server_param() [all …]
|
/openssl-master/providers/common/ |
A D | securitycheck.c | 154 size_t L, N; in ossl_dsa_check_key() local 166 N = BN_num_bits(q); in ossl_dsa_check_key() 175 return (L >= 512 && N >= 160 && N < 224); in ossl_dsa_check_key() 178 if (L == 2048 && (N == 224 || N == 256)) in ossl_dsa_check_key() 180 return (L == 3072 && N == 256); in ossl_dsa_check_key() 198 size_t L, N; in ossl_dh_check_key() local 218 N = BN_num_bits(q); in ossl_dh_check_key() 220 return (L == 2048 && (N == 224 || N == 256)); in ossl_dh_check_key()
|
/openssl-master/crypto/ffc/ |
A D | ffc_key_generate.c | 23 int N, int s, BIGNUM *priv) in ossl_ffc_generate_private_key() argument 29 if (N == 0) in ossl_ffc_generate_private_key() 30 N = qbits; in ossl_ffc_generate_private_key() 32 s = N / 2; in ossl_ffc_generate_private_key() 35 if (N < 2 * s || N > qbits) in ossl_ffc_generate_private_key() 40 if (two_powN == NULL || !BN_lshift(two_powN, BN_value_one(), N)) in ossl_ffc_generate_private_key()
|
A D | ffc_params_generate.c | 46 if (L == 2048 && (N == 224 || N == 256)) in ffc_validate_LN() 56 if (L == 2048 && (N == 224 || N == 256)) in ffc_validate_LN() 74 if (L == 2048 && (N == 224 || N == 256)) in ffc_validate_LN() 448 if (N == 160) in default_mdname() 539 if (N == 0) in ossl_ffc_params_FIPS186_4_gen_verify() 554 if (N == 0) in ossl_ffc_params_FIPS186_4_gen_verify() 556 qsize = N >> 3; in ossl_ffc_params_FIPS186_4_gen_verify() 563 if (L <= N || !ffc_validate_LN(L, N, type, verify)) { in ossl_ffc_params_FIPS186_4_gen_verify() 834 if (N == 0) in ossl_ffc_params_FIPS186_2_gen_verify() 845 if (N == 0) in ossl_ffc_params_FIPS186_2_gen_verify() [all …]
|
A D | ffc_params_validate.c | 56 size_t L, N; in ossl_ffc_params_FIPS186_4_validate() local 63 N = BN_num_bits(params->q); in ossl_ffc_params_FIPS186_4_validate() 66 L, N, res, cb); in ossl_ffc_params_FIPS186_4_validate() 74 size_t L, N; in ossl_ffc_params_FIPS186_2_validate() local 83 N = BN_num_bits(params->q); in ossl_ffc_params_FIPS186_2_validate() 86 L, N, res, cb); in ossl_ffc_params_FIPS186_2_validate()
|
/openssl-master/test/recipes/30-test_evp_data/ |
A D | evppkey_kdf_scrypt.txt | 19 Ctrl.N = N:16 27 Ctrl.N = N:1024 35 Ctrl.N = N:1024 43 Ctrl.N = N:1024 51 Ctrl.N = N:16384 60 Ctrl.N = n:2097152
|
A D | evpkdf_scrypt.txt | 19 Ctrl.N = n:16 27 Ctrl.N = n:1024 35 Ctrl.N = n:1024 43 Ctrl.N = n:1024 51 Ctrl.N = n:16384 60 Ctrl.N = n:2097152
|
/openssl-master/apps/lib/ |
A D | tlssrp_depr.c | 27 static int srp_Verify_N_and_g(const BIGNUM *N, const BIGNUM *g) in srp_Verify_N_and_g() argument 33 g != NULL && N != NULL && bn_ctx != NULL && BN_is_odd(N) && in srp_Verify_N_and_g() 34 BN_check_prime(N, bn_ctx, NULL) == 1 && in srp_Verify_N_and_g() 35 p != NULL && BN_rshift1(p, N) && in srp_Verify_N_and_g() 40 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g() 41 BN_add_word(r, 1) && BN_cmp(r, N) == 0; in srp_Verify_N_and_g() 68 BIGNUM *N = NULL, *g = NULL; in ssl_srp_verify_param_cb() local 75 BN_print(bio_err, N); in ssl_srp_verify_param_cb() 81 if (SRP_check_known_gN_param(g, N)) in ssl_srp_verify_param_cb() 94 if (BN_num_bits(g) <= BN_BITS && srp_Verify_N_and_g(N, g)) in ssl_srp_verify_param_cb() [all …]
|
/openssl-master/include/openssl/ |
A D | srp.h.in | 60 const BIGNUM *N; member 75 const BIGNUM *N); 92 * Internal structure storing N and g pair 97 const BIGNUM *N; member 127 BIGNUM **verifier, const BIGNUM *N, 132 BIGNUM **verifier, const BIGNUM *N, 157 char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N); 164 const BIGNUM *b, const BIGNUM *N); 169 BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g, 173 int SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N); [all …]
|
/openssl-master/crypto/bn/ |
A D | bn_recp.c | 16 bn_init(&(recp->N)); in BN_RECP_CTX_init() 29 bn_init(&(ret->N)); in BN_RECP_CTX_new() 39 BN_free(&recp->N); in BN_RECP_CTX_free() 47 if (!BN_copy(&(recp->N), d)) in BN_RECP_CTX_set() 98 if (BN_ucmp(m, &(recp->N)) < 0) { in BN_div_recp() 121 recp->shift = BN_reciprocal(&(recp->Nr), &(recp->N), i, ctx); in BN_div_recp() 140 if (!BN_mul(b, &(recp->N), d, ctx)) in BN_div_recp() 147 while (BN_ucmp(r, &(recp->N)) >= 0) { in BN_div_recp() 152 if (!BN_usub(r, r, &(recp->N))) in BN_div_recp() 159 d->neg = m->neg ^ recp->N.neg; in BN_div_recp()
|
A D | bn_mont.c | 42 int num = mont->N.top; in bn_mul_mont_fixed_top() 95 n = &(mont->N); in bn_from_montgomery_word() 203 if (!BN_mul(t1, t2, &mont->N, ctx)) in bn_from_mont_fixed_top() 210 if (BN_ucmp(ret, &(mont->N)) >= 0) { in bn_from_mont_fixed_top() 211 if (!BN_usub(ret, ret, &(mont->N))) in bn_from_mont_fixed_top() 246 bn_init(&ctx->N); in BN_MONT_CTX_init() 257 BN_clear_free(&mont->N); in BN_MONT_CTX_free() 275 if (!BN_copy(&(mont->N), mod)) in BN_MONT_CTX_set() 279 mont->N.neg = 0; in BN_MONT_CTX_set() 374 mont->ri = BN_num_bits(&mont->N); in BN_MONT_CTX_set() [all …]
|
/openssl-master/test/recipes/04-test_pem_reading_data/ |
A D | cert-onecolumn.pem | 29 N 60 N 164 N 212 N 224 N 288 N 352 N 372 N 449 N 462 N [all …]
|
A D | dsa-onecolumn.pem | 18 N 159 N 183 N 228 N 347 N 353 N 416 N 648 N 693 N 780 N [all …]
|
/openssl-master/providers/implementations/kdfs/ |
A D | scrypt.c | 49 uint64_t N; member 101 ctx->N = 1 << 20; in kdf_scrypt_init() 205 ctx->N = u64_value; in kdf_scrypt_set_ctx_params() 365 for (i = 1; i < N; i++, pV += 32 * r) in scryptROMix() 368 scryptBlockMix(X, V + (N - 1) * 32 * r, r); in scryptROMix() 370 for (i = 0; i < N; i++) { in scryptROMix() 372 j = X[16 * (2 * r - 1)] % N; in scryptROMix() 421 if (r == 0 || p == 0 || N < 2 || (N & (N - 1))) in scrypt_alg() 435 if (N >= (((uint64_t)1) << (16 * r))) { in scrypt_alg() 463 if (N + 2 > i / r) { in scrypt_alg() [all …]
|
/openssl-master/crypto/ |
A D | README-sparse_array.md | 49 except for the single pointer to the user's data (N = SA_BLOCK_MAX for 61 | 0 | 1 | 2 |...|N-1| 74 Inserting at element 2N+1 creates a new root node and pushes down the old root 87 | 0 | 1 | 2 |...|N-1| 95 | 0 | 1 | 2 |...|N-1| | 0 | 1 | 2 |...|N-1| 106 Index 0 Index 2N+1 128 | 0 | 1 | 2 |...|N-1| 136 | 0 | 1 | 2 |...|N-1| | 0 | 1 | 2 |...|N-1| 147 Index 2N+1
|
/openssl-master/crypto/asn1/ |
A D | p5_scrypt.c | 34 size_t keylen, uint64_t N, uint64_t r, 43 unsigned char *aiv, uint64_t N, uint64_t r, in PKCS5_pbe2_set_scrypt() argument 58 if (EVP_PBE_scrypt(NULL, 0, NULL, 0, N, r, p, 0, NULL, 0) == 0) { in PKCS5_pbe2_set_scrypt() 112 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt() 148 size_t keylen, uint64_t N, uint64_t r, in pkcs5_scrypt_set() argument 167 if (ASN1_INTEGER_set_uint64(sparam->costParameter, N) == 0) in pkcs5_scrypt_set() 217 uint64_t p, r, N; in PKCS5_v2_scrypt_keyivgen_ex() local 255 if (ASN1_INTEGER_get_uint64(&N, sparam->costParameter) == 0 in PKCS5_v2_scrypt_keyivgen_ex() 258 || EVP_PBE_scrypt_ex(NULL, 0, NULL, 0, N, r, p, 0, NULL, 0, in PKCS5_v2_scrypt_keyivgen_ex() 268 if (EVP_PBE_scrypt_ex(pass, passlen, salt, saltlen, N, r, p, 0, key, in PKCS5_v2_scrypt_keyivgen_ex()
|
/openssl-master/ms/ |
A D | uplink-x86_64.pl | 27 for ($i=1;$i<=$N;$i++) { 54 .quad $N 56 for ($i=1;$i<=$N;$i++) { print " .quad $prefix$i\n"; } 61 for ($i=1;$i<=$N;$i++) {
|
A D | uplink-ia64.pl | 24 for ($i=1;$i<=$N;$i++) { 53 OPENSSL_UplinkTable: data8 $N // amount of following entries 55 for ($i=1;$i<=$N;$i++) { print " data8 \@fptr(lazy$i#)\n"; }
|