Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/openssl/crypto/sha/
H A Dsha256.c208 g = ctx->h[6]; in sha256_block_data_order()
216 h = g; in sha256_block_data_order()
217 g = f; in sha256_block_data_order()
235 h = g; in sha256_block_data_order()
236 g = f; in sha256_block_data_order()
251 ctx->h[6] += g; in sha256_block_data_order()
287 g = ctx->h[6]; in sha256_block_data_order()
295 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha256_block_data_order()
297 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha256_block_data_order()
299 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha256_block_data_order()
[all …]
H A Dsha512.c675 g = ctx->h[6]; in sha512_block_data_order()
686 h = g; in sha512_block_data_order()
687 g = f; in sha512_block_data_order()
705 h = g; in sha512_block_data_order()
706 g = f; in sha512_block_data_order()
721 ctx->h[6] += g; in sha512_block_data_order()
756 g = ctx->h[6]; in sha512_block_data_order()
761 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha512_block_data_order()
763 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha512_block_data_order()
765 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha512_block_data_order()
[all …]
/openssl/test/helpers/
H A Dpredefined_dhparams.c57 g = BN_bin2bn(gdata, glen, NULL); in get_dh_from_pg()
58 if (p == NULL || g == NULL) in get_dh_from_pg()
67 BN_free(g); in get_dh_from_pg()
154 BIGNUM *p = NULL, *g = NULL; in get_dh2048() local
157 g = BN_new(); in get_dh2048()
158 if (g == NULL || !BN_set_word(g, 2)) in get_dh2048()
169 BN_free(g); in get_dh2048()
175 BIGNUM *p = NULL, *g = NULL; in get_dh4096() local
178 g = BN_new(); in get_dh4096()
179 if (g == NULL || !BN_set_word(g, 2)) in get_dh4096()
[all …]
/openssl/crypto/ec/asm/
H A Dx25519-x86_64.pl232 mul %rbp # f[1]*g[0]
285 mulq %r14 # 2*g[0]*g[1]
290 mulq %r14 # 2*g[0]*g[2]
295 mulq %r14 # 2*g[0]*g[3]
299 mulq %r14 # 2*g[0]*g[4]
315 mulq %rbp # 2*g[1]*g[2]
319 mulq %rsi # 2*g[1]*g[3]
324 mulq %rdi # 2*g[1]*g[4]*19
329 mulq %rdi # 2*g[3]*g[4]*19
343 mulq %rsi # 2*g[2]*g[3]*19
[all …]
/openssl/crypto/aes/asm/
H A Daes-s390x.pl99 $g="";
102 $g="g";
799 cl${g}r $inp,$t0
801 cl${g}r $key,$t0
1215 sl${g}r $len,$key
1271 sl${g}r $len,$t0
1294 sl${g}r $len,$t0
1350 sl${g}r $len,$s1
1424 l${g}r $s3,$sp
1536 l${g} $sp,0($sp)
[all …]
/openssl/crypto/ffc/
H A Dffc_params.c32 BN_free(params->g); in ossl_ffc_params_cleanup()
48 if (g != NULL && g != d->g) { in ossl_ffc_params_set0_pqg()
49 BN_free(d->g); in ossl_ffc_params_set0_pqg()
50 d->g = g; in ossl_ffc_params_set0_pqg()
55 const BIGNUM **q, const BIGNUM **g) in ossl_ffc_params_get0_pqg() argument
61 if (g != NULL) in ossl_ffc_params_get0_pqg()
62 *g = d->g; in ossl_ffc_params_get0_pqg()
180 || !ffc_bn_cpy(&dst->g, src->g) in ossl_ffc_params_copy()
206 && BN_cmp(a->g, b->g) == 0 in ossl_ffc_params_cmp()
224 if (ffc->g != NULL in ossl_ffc_params_todata()
[all …]
H A Dffc_params_generate.c576 g = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify()
607 if (params->g == NULL) { in ossl_ffc_params_FIPS186_4_gen_verify()
754 if (verify && BN_cmp(g, params->g) != 0) { in ossl_ffc_params_FIPS186_4_gen_verify()
775 if (g != params->g) { in ossl_ffc_params_FIPS186_4_gen_verify()
776 BN_free(params->g); in ossl_ffc_params_FIPS186_4_gen_verify()
777 params->g = BN_dup(g); in ossl_ffc_params_FIPS186_4_gen_verify()
886 g = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_2_gen_verify()
913 if (params->g == NULL) { in ossl_ffc_params_FIPS186_2_gen_verify()
1012 if (g != params->g) { in ossl_ffc_params_FIPS186_2_gen_verify()
1013 BN_free(params->g); in ossl_ffc_params_FIPS186_2_gen_verify()
[all …]
/openssl/crypto/bn/
H A Dbn_gcd.c551 BIGNUM *g, *temp = NULL; in BN_gcd() local
574 g = BN_CTX_get(ctx); in BN_gcd()
577 if (g == NULL in BN_gcd()
578 || !BN_lshift1(g, in_b) in BN_gcd()
594 || !BN_rshift(g, g, shifts)) in BN_gcd()
598 top = 1 + ((r->top >= g->top) ? r->top : g->top); in BN_gcd()
609 glen = BN_num_bits(g); in BN_gcd()
616 & (~((g->top - 1) >> (sizeof(g->top) * 8 - 1))); in BN_gcd()
628 & (~((g->top - 1) >> (sizeof(g->top) * 8 - 1))), in BN_gcd()
629 g, temp, top); in BN_gcd()
[all …]
/openssl/crypto/srp/
H A Dsrp_lib.c55 static BIGNUM *srp_Calc_k(const BIGNUM *N, const BIGNUM *g, in srp_Calc_k() argument
60 return srp_Calc_xy(N, g, N, libctx, propq); in srp_Calc_k()
113 if (b == NULL || N == NULL || g == NULL || v == NULL || in SRP_Calc_B_ex()
123 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex()
124 || (k = srp_Calc_k(N, g, libctx, propq)) == NULL in SRP_Calc_B_ex()
141 return SRP_Calc_B_ex(b, N, g, v, NULL, NULL); in SRP_Calc_B()
232 if (!BN_mod_exp(tmp, g, xtmp, N, bn_ctx)) in SRP_Calc_client_key_ex()
234 if ((k = srp_Calc_k(N, g, libctx, propq)) == NULL) in SRP_Calc_client_key_ex()
263 return SRP_Calc_client_key_ex(N, B, g, x, a, u, NULL, NULL); in SRP_Calc_client_key()
312 if ((g == NULL) || (N == NULL)) in SRP_check_known_gN_param()
[all …]
H A Dsrp_vfy.c199 ret->g = NULL; in SRP_user_pwd_new()
207 void SRP_user_pwd_set_gN(SRP_user_pwd *vinfo, const BIGNUM *g, in SRP_user_pwd_set_gN() argument
211 vinfo->g = g; 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()
479 vb->default_g = gN->g; in SRP_VBASE_init()
631 if ((len = t_fromb64(tmp, sizeof(tmp), g)) <= 0) in SRP_create_verifier_ex()
639 SRP_gN *gN = SRP_get_default_gN(g); in SRP_create_verifier_ex()
643 g_bn = gN->g; in SRP_create_verifier_ex()
749 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex()
[all …]
/openssl/util/perl/TLSProxy/
H A DServerKeyExchange.pm34 $self->{g} = "";
60 my $g = substr($self->data, $ptr, $g_len);
87 $self->g($g);
102 $data .= pack('n', length($self->g));
103 $data .= $self->g;
125 sub g subroutine
129 $self->{g} = shift;
131 return $self->{g};
/openssl/ssl/
H A Dtls_srp.c39 BN_free(ctx->srp_ctx.g); in ssl_ctx_srp_ctx_free_intern()
67 BN_free(s->srp_ctx.g); in ssl_srp_ctx_free_intern()
116 ((s->srp_ctx.g = BN_dup(ctx->srp_ctx.g)) == NULL)) || in ssl_srp_ctx_init_intern()
149 BN_free(s->srp_ctx.g); in ssl_srp_ctx_init_intern()
255 sc->srp_ctx.g = BN_dup(GN->g); in SSL_set_srp_server_param_pw()
285 if (g != NULL) { in SSL_set_srp_server_param()
287 if (!BN_copy(sc->srp_ctx.g, g)) { in SSL_set_srp_server_param()
292 sc->srp_ctx.g = BN_dup(g); in SSL_set_srp_server_param()
480 if (sc->srp_ctx.g != NULL) in SSL_get_srp_g()
481 return sc->srp_ctx.g; in SSL_get_srp_g()
[all …]
/openssl/crypto/sha/asm/
H A Dkeccak1600-s390x.pl40 $g="";
43 $g="g";
74 st${g} %r14,$SIZE_T*14($sp)
348 st${g} %r0,0($sp)
406 st${g} %r0,0($sp)
427 cl${g}r $len,$bsz
430 srl${g} $bsz,3
437 a${g}hi $len,-8
482 srl${g} $bsz,3
492 cl${g}r $len,%r14
[all …]
H A Dsha512-s390x.pl53 $g="";
56 $g="g";
114 my ($i,$a,$b,$c,$d,$e,$f,$g,$h) = @_;
125 xgr $t2,$g
133 xgr $t2,$g # Ch(e,f,g)
152 my ($i,$a,$b,$c,$d,$e,$f,$g,$h) = @_;
267 stm${g} $ctx,%r15,`2*$SIZE_T`($sp)
270 st${g} %r0,0($sp)
294 l${g} $ctx,`$frame+2*$SIZE_T`($sp)
312 cl${g} $inp,`$frame+4*$SIZE_T`($sp)
[all …]
H A Dsha1-s390x.pl50 $g="";
53 $g="g";
194 st${g} $ctx,`2*$SIZE_T`($sp)
195 stm${g} %r6,%r15,`6*$SIZE_T`($sp)
198 st${g} %r0,0($sp)
228 l${g} $ctx,`$frame+2*$SIZE_T`($sp)
240 brct${g} $len,.Lloop
242 lm${g} %r6,%r15,`$frame+6*$SIZE_T`($sp)
/openssl/util/
H A Dfix-includes.sed1 s|internal/([a-z0-9_]+)_int\.h|crypto/\1.h|g ;
2 …ects.h|poly1305.h|sha.h|siphash.h|sm2err.h|sm2.h|sm4.h|sparse_array.h|store.h|foobar)@crypto/\1@g ;
3 s/constant_time_locl/constant_time/g ;
4 s/_lo?cl\.h/_local.h/g ;
5 s/_int\.h/_local.h/g ;
6 s|openssl/ossl_typ\.h|openssl/types.h|g ;
/openssl/test/recipes/04-test_pem_reading_data/
H A Dcert-onecolumn.pem17 g
31 g
59 g
64 g
181 g
243 g
265 g
499 g
504 g
621 g
[all …]
H A Ddsa-onecolumn.pem21 g
69 g
95 g
105 g
110 g
115 g
355 g
491 g
492 g
580 g
[all …]
/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()
40 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g()
68 BIGNUM *N = NULL, *g = NULL; in ssl_srp_verify_param_cb() local
70 if (((N = SSL_get_srp_N(s)) == NULL) || ((g = SSL_get_srp_g(s)) == NULL)) in ssl_srp_verify_param_cb()
77 BN_print(bio_err, g); 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()
175 (s, p->user->N, p->user->g, p->user->s, p->user->v, in ssl_srp_server_param_cb()
/openssl/apps/
H A Dtestdsa.h193 unsigned char *g; member
207 st.g = dsa##bits##_g; \
219 BIGNUM *priv_key, *pub_key, *p, *q, *g; in get_dsa() local
246 g = BN_bin2bn(dsa_t.g, dsa_t.g_l, NULL); in get_dsa()
248 || g == NULL) { in get_dsa()
257 g) in get_dsa()
276 BN_free(g); in get_dsa()
/openssl/crypto/dh/
H A Ddh_gen.c160 int g, ok = -1; in dh_builtin_genparams() local
185 if (ret->params.g == NULL && ((ret->params.g = BN_new()) == NULL)) in dh_builtin_genparams()
197 g = 2; in dh_builtin_genparams()
203 g = 5; in dh_builtin_genparams()
214 g = generator; in dh_builtin_genparams()
221 if (!BN_set_word(ret->params.g, g)) in dh_builtin_genparams()
/openssl/crypto/
H A Ds390xcpuid.pl16 $g="";
19 $g="g";
330 l${g} %r1,$stdframe($sp)
351 l${g}r %r1,$param
372 l${g}r %r1,$param
393 l${g}r %r1,$param
414 l${g}r %r1,$param
435 st${g} $out,6*$SIZE_T($sp)
441 l${g} $out,6*$SIZE_T($sp)
457 l${g}r %r1,$param
[all …]
/openssl/include/openssl/
H A Dsrp.h.in59 const BIGNUM *g; member
74 void SRP_user_pwd_set_gN(SRP_user_pwd *user_pwd, const BIGNUM *g,
92 * Internal structure storing N and g pair
96 const BIGNUM *g; member
124 char **verifier, const char *N, const char *g);
128 const BIGNUM *g, OSSL_LIB_CTX *libctx,
133 const BIGNUM *g);
157 char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N);
166 BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
169 BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
[all …]
/openssl/test/
H A Dsrptest.c52 &s, &v, GN->N, GN->g))) in run_srp()
56 test_output_bignum("g", GN->g); in run_srp()
68 Bpub = SRP_Calc_B(b, GN->N, GN->g, v); in run_srp()
82 Apub = SRP_Calc_A(a, GN->N, GN->g); in run_srp()
93 Kclient = SRP_Calc_client_key(GN->N, Bpub, GN->g, x, a, u); in run_srp()
157 GN->g))) in run_srp_kat()
175 Bpub = SRP_Calc_B(b, GN->N, GN->g, v); in run_srp_kat()
194 Apub = SRP_Calc_A(a, GN->N, GN->g); in run_srp_kat()
217 Kclient = SRP_Calc_client_key(GN->N, Bpub, GN->g, x, a, u); in run_srp_kat()
/openssl/crypto/bn/asm/
H A Ds390x-mont.pl61 $g="";
64 $g="g";
103 st${g} %r2,2*$SIZE_T($sp)
118 stm${g} %r3,%r15,3*$SIZE_T($sp)
125 st${g} %r0,0($sp) # back chain
239 cl${g} $bp,`$stdframe+8+4*$SIZE_T`($j,$sp) # compare to &bp[num]
242 l${g} $rp,`$stdframe+8+2*$SIZE_T`($j,$sp) # reincarnate rp
274 lm${g} %r6,%r15,0(%r1)

Completed in 86 milliseconds

12345678910>>...14