Home
last modified time | relevance | path

Searched refs:N (Results 1 – 25 of 114) sorted by relevance

12345

/openssl/test/recipes/10-test_bn_data/
H A Dbnshift.txt1222 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/crypto/srp/
H A Dsrp_lib.c31 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 …]
H A Dsrp_vfy.c196 ret->N = NULL; in SRP_user_pwd_new()
206 const BIGNUM *N) in SRP_user_pwd_set_gN() argument
208 vinfo->N = N; in SRP_user_pwd_set_gN()
267 SRP_user_pwd_set_gN(ret, src->g, src->N); in srp_user_pwd_dup()
462 SRP_user_pwd_set_gN(user_pwd, lgN->g, lgN->N); in SRP_VBASE_init()
487 vb->default_N = gN->N; in SRP_VBASE_init()
631 if (N) { in SRP_create_verifier_ex()
632 if ((len = t_fromb64(tmp, sizeof(tmp), N)) <= 0) in SRP_create_verifier_ex()
649 N_bn = gN->N; in SRP_create_verifier_ex()
756 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex()
[all …]
/openssl/crypto/bn/asm/
H A Dx86_64-mont.pl446 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 …]
H A Dx86_64-mont5.pl704 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 …]
H A Dsparct4-mont.pl112 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/providers/common/
H A Dsecuritycheck.c150 size_t L, N; in ossl_dsa_check_key() local
162 N = BN_num_bits(q); in ossl_dsa_check_key()
175 if (L < 512 || N < 160) in ossl_dsa_check_key()
177 if (L < 2048 || N < 224) in ossl_dsa_check_key()
182 if (L == 2048 && (N == 224 || N == 256)) /* 112 bits */ in ossl_dsa_check_key()
184 return (L == 3072 && N == 256); /* 128 bits */ in ossl_dsa_check_key()
197 size_t L, N; in ossl_dh_check_key() local
217 N = BN_num_bits(q); in ossl_dh_check_key()
219 return (L == 2048 && (N == 224 || N == 256)); in ossl_dh_check_key()
/openssl/test/
H A Dsrptest.c55 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/ssl/
H A Dtls_srp.c38 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()
114 ((s->srp_ctx.N = BN_dup(ctx->srp_ctx.N)) == NULL)) || in ssl_srp_ctx_init_intern()
148 BN_free(s->srp_ctx.N); in ssl_srp_ctx_init_intern()
254 sc->srp_ctx.N = BN_dup(GN->N); in SSL_set_srp_server_param_pw()
276 if (N != NULL) { in SSL_set_srp_server_param()
278 if (!BN_copy(sc->srp_ctx.N, N)) { in SSL_set_srp_server_param()
283 sc->srp_ctx.N = BN_dup(N); in SSL_set_srp_server_param()
319 if (!(sc->srp_ctx.N) || in SSL_set_srp_server_param()
417 if (BN_ucmp(srp->g, srp->N) >= 0 || BN_ucmp(srp->B, srp->N) >= 0 in srp_verify_server_param()
[all …]
/openssl/test/recipes/30-test_evp_data/
H A Devppkey_kdf_scrypt.txt19 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
H A Devpkdf_scrypt.txt19 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/apps/lib/
H A Dtlssrp_depr.c27 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/crypto/ffc/
H A Dffc_params_generate.c46 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()
451 if (N == 160) in default_mdname()
542 if (N == 0) in ossl_ffc_params_FIPS186_4_gen_verify()
557 if (N == 0) in ossl_ffc_params_FIPS186_4_gen_verify()
559 qsize = N >> 3; in ossl_ffc_params_FIPS186_4_gen_verify()
566 if (L <= N || !ffc_validate_LN(L, N, type, verify)) { in ossl_ffc_params_FIPS186_4_gen_verify()
838 if (N == 0) in ossl_ffc_params_FIPS186_2_gen_verify()
852 if (N == 0) in ossl_ffc_params_FIPS186_2_gen_verify()
[all …]
H A Dffc_key_generate.c23 int N, int s, BIGNUM *priv) in ossl_ffc_generate_private_key() argument
31 if (N == 0) in ossl_ffc_generate_private_key()
32 N = params->keylength ? params->keylength : 2 * s; 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()
H A Dffc_params_validate.c56 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/include/openssl/
H A Dsrp.h.in60 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/crypto/bn/
H A Dbn_recp.c16 bn_init(&(recp->N)); in BN_RECP_CTX_init()
27 bn_init(&(ret->N)); in BN_RECP_CTX_new()
37 BN_free(&recp->N); in BN_RECP_CTX_free()
45 if (BN_is_zero(d) || !BN_copy(&(recp->N), d)) in BN_RECP_CTX_set()
96 if (BN_ucmp(m, &(recp->N)) < 0) { in BN_div_recp()
119 recp->shift = BN_reciprocal(&(recp->Nr), &(recp->N), i, ctx); in BN_div_recp()
138 if (!BN_mul(b, &(recp->N), d, ctx)) in BN_div_recp()
145 while (BN_ucmp(r, &(recp->N)) >= 0) { in BN_div_recp()
150 if (!BN_usub(r, r, &(recp->N))) in BN_div_recp()
157 d->neg = m->neg ^ recp->N.neg; in BN_div_recp()
H A Dbn_mont.c42 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()
244 bn_init(&ctx->N); in BN_MONT_CTX_init()
255 BN_clear_free(&mont->N); in BN_MONT_CTX_free()
273 if (!BN_copy(&(mont->N), mod)) in BN_MONT_CTX_set()
277 mont->N.neg = 0; in BN_MONT_CTX_set()
372 mont->ri = BN_num_bits(&mont->N); in BN_MONT_CTX_set()
[all …]
/openssl/test/recipes/04-test_pem_reading_data/
H A Dcert-onecolumn.pem29 N
60 N
164 N
212 N
224 N
288 N
352 N
372 N
449 N
462 N
[all …]
H A Ddsa-onecolumn.pem18 N
159 N
183 N
228 N
347 N
353 N
416 N
648 N
693 N
780 N
[all …]
/openssl/providers/implementations/kdfs/
H A Dscrypt.c50 uint64_t N; member
118 dest->N = src->N; in kdf_scrypt_dup()
137 ctx->N = 1 << 20; in kdf_scrypt_init()
239 ctx->N = u64_value; in kdf_scrypt_set_ctx_params()
400 for (i = 1; i < N; i++, pV += 32 * r) in scryptROMix()
403 scryptBlockMix(X, V + (N - 1) * 32 * r, r); in scryptROMix()
405 for (i = 0; i < N; i++) { in scryptROMix()
407 j = X[16 * (2 * r - 1)] % N; in scryptROMix()
456 if (r == 0 || p == 0 || N < 2 || (N & (N - 1))) in scrypt_alg()
470 if (N >= (((uint64_t)1) << (16 * r))) { in scrypt_alg()
[all …]
/openssl/crypto/
H A DREADME-sparse_array.md49 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/crypto/asn1/
H A Dp5_scrypt.c34 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()
118 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt()
157 size_t keylen, uint64_t N, uint64_t r, in pkcs5_scrypt_set() argument
180 if (ASN1_INTEGER_set_uint64(sparam->costParameter, N) == 0) { in pkcs5_scrypt_set()
242 uint64_t p, r, N; in PKCS5_v2_scrypt_keyivgen_ex() local
280 if (ASN1_INTEGER_get_uint64(&N, sparam->costParameter) == 0 in PKCS5_v2_scrypt_keyivgen_ex()
283 || EVP_PBE_scrypt_ex(NULL, 0, NULL, 0, N, r, p, 0, NULL, 0, in PKCS5_v2_scrypt_keyivgen_ex()
293 if (EVP_PBE_scrypt_ex(pass, passlen, salt, saltlen, N, r, p, 0, key, in PKCS5_v2_scrypt_keyivgen_ex()
/openssl/ms/
H A Duplink-x86_64.pl28 for ($i=1;$i<=$N;$i++) {
55 .quad $N
57 for ($i=1;$i<=$N;$i++) { print " .quad $prefix$i\n"; }
62 for ($i=1;$i<=$N;$i++) {
H A Duplink-ia64.pl24 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"; }

Completed in 94 milliseconds

12345