/openssl/crypto/sha/ |
H A D | sha256.c | 228 g = ctx->h[6]; in sha256_block_data_order() 236 h = g; in sha256_block_data_order() 237 g = f; in sha256_block_data_order() 255 h = g; in sha256_block_data_order() 256 g = f; in sha256_block_data_order() 271 ctx->h[6] += g; in sha256_block_data_order() 311 g = ctx->h[6]; in sha256_block_data_order_c() 319 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha256_block_data_order_c() 321 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha256_block_data_order_c() 323 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha256_block_data_order_c() [all …]
|
H A D | sha512.c | 679 g = ctx->h[6]; in sha512_block_data_order() 690 h = g; in sha512_block_data_order() 691 g = f; in sha512_block_data_order() 709 h = g; in sha512_block_data_order() 710 g = f; in sha512_block_data_order() 725 ctx->h[6] += g; in sha512_block_data_order() 764 g = ctx->h[6]; in sha512_block_data_order_c() 769 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha512_block_data_order_c() 771 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha512_block_data_order_c() 773 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha512_block_data_order_c() [all …]
|
/openssl/test/helpers/ |
H A D | predefined_dhparams.c | 57 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 D | x25519-x86_64.pl | 232 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 D | aes-s390x.pl | 99 $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 D | ffc_params.c | 33 BN_clear_free(params->g); in ossl_ffc_params_cleanup() 39 BN_free(params->g); in ossl_ffc_params_cleanup() 56 if (g != NULL && g != d->g) { in ossl_ffc_params_set0_pqg() 57 BN_free(d->g); in ossl_ffc_params_set0_pqg() 58 d->g = g; in ossl_ffc_params_set0_pqg() 63 const BIGNUM **q, const BIGNUM **g) in ossl_ffc_params_get0_pqg() argument 69 if (g != NULL) in ossl_ffc_params_get0_pqg() 70 *g = d->g; in ossl_ffc_params_get0_pqg() 184 || !ffc_bn_cpy(&dst->g, src->g) in ossl_ffc_params_copy() 212 && BN_cmp(a->g, b->g) == 0 in ossl_ffc_params_cmp() [all …]
|
H A D | ffc_params_generate.c | 579 g = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify() 610 if (params->g == NULL) { in ossl_ffc_params_FIPS186_4_gen_verify() 757 if (verify && BN_cmp(g, params->g) != 0) { in ossl_ffc_params_FIPS186_4_gen_verify() 778 if (g != params->g) { in ossl_ffc_params_FIPS186_4_gen_verify() 779 BN_free(params->g); in ossl_ffc_params_FIPS186_4_gen_verify() 780 params->g = BN_dup(g); in ossl_ffc_params_FIPS186_4_gen_verify() 893 g = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_2_gen_verify() 920 if (params->g == NULL) { in ossl_ffc_params_FIPS186_2_gen_verify() 1019 if (g != params->g) { in ossl_ffc_params_FIPS186_2_gen_verify() 1020 BN_free(params->g); in ossl_ffc_params_FIPS186_2_gen_verify() [all …]
|
/openssl/crypto/srp/ |
H A D | srp_lib.c | 55 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 …]
|
/openssl/crypto/bn/ |
H A D | bn_gcd.c | 583 BIGNUM *g, *temp = NULL; in BN_gcd() local 606 g = BN_CTX_get(ctx); in BN_gcd() 609 if (g == NULL in BN_gcd() 610 || !BN_lshift1(g, in_b) in BN_gcd() 637 || !BN_rshift(g, g, pow2_shifts)) in BN_gcd() 641 top = 1 + ((r->top >= g->top) ? r->top : g->top); in BN_gcd() 652 glen = BN_num_bits(g); in BN_gcd() 659 & (~((unsigned int)(g->top - 1) >> (sizeof(g->top) * 8 - 1))); in BN_gcd() 671 & (~((unsigned int)(g->top - 1) >> (sizeof(g->top) * 8 - 1))), in BN_gcd() 672 g, temp, top); in BN_gcd() [all …]
|
/openssl/ssl/ |
H A D | tls_srp.c | 39 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/util/perl/TLSProxy/ |
H A D | ServerKeyExchange.pm | 42 $self->{g} = ""; 68 my $g = substr($self->data, $ptr, $g_len); 95 $self->g($g); 110 $data .= pack('n', length($self->g)); 111 $data .= $self->g; 133 sub g subroutine 137 $self->{g} = shift; 139 return $self->{g};
|
/openssl/crypto/sha/asm/ |
H A D | keccak1600-s390x.pl | 40 $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 493 cl${g}r $len,%r14 [all …]
|
H A D | sha512-s390x.pl | 53 $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 D | sha1-s390x.pl | 50 $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/test/recipes/04-test_pem_reading_data/ |
H A D | cert-onecolumn.pem | 17 g 31 g 59 g 64 g 181 g 243 g 265 g 499 g 504 g 621 g [all …]
|
H A D | dsa-onecolumn.pem | 21 g 69 g 95 g 105 g 110 g 115 g 355 g 491 g 492 g 580 g [all …]
|
/openssl/util/ |
H A D | fix-includes.sed | 1 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/apps/lib/ |
H 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() 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 D | testdsa.h | 193 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/ |
H A D | s390xcpuid.pl | 16 $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/crypto/dh/ |
H A D | dh_gen.c | 160 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/include/openssl/ |
H A D | srp.h.in | 59 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/demos/pkey/ |
H A D | EVP_PKEY_DSA_paramfromdata.c | 29 BIGNUM *p = NULL, *q = NULL, *g = NULL; in main() local 33 g = BN_bin2bn(dsa_g, sizeof(dsa_g), NULL); in main() 34 if (p == NULL || q == NULL || g == NULL) in main() 43 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g)) in main() 70 BN_free(g); in main()
|
/openssl/test/ |
H A D | srptest.c | 52 &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()
|
H A D | dsatest.c | 70 const BIGNUM *p = NULL, *q = NULL, *g = NULL; in dsa_test() local 96 DSA_get0_pqg(dsa, &p, &q, &g); in dsa_test() 107 i = BN_bn2bin(g, buf); in dsa_test() 356 || !TEST_ptr(g = BN_bin2bn(out_g, sizeof(out_g), NULL)) in test_dsa_sig_infinite_loop() 367 if (!TEST_true(DSA_set0_pqg(dsa, p, q, g))) in test_dsa_sig_infinite_loop() 369 p = q = g = NULL; in test_dsa_sig_infinite_loop() 412 BN_free(g); in test_dsa_sig_infinite_loop() 451 if (!TEST_true(DSA_set0_pqg(dsa, p, q, g))) in test_dsa_sig_neg_param() 469 BN_set_negative(g, 1); in test_dsa_sig_neg_param() 475 BN_set_negative(g, 1); in test_dsa_sig_neg_param() [all …]
|