Lines Matching refs:g
19 BIGNUM *p, BIGNUM *g, BIGNUM *q) in get_dh_from_pg_bn() argument
31 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_G, g) in get_dh_from_pg_bn()
54 BIGNUM *p = NULL, *g = NULL, *q = NULL; in get_dh_from_pg() local
57 g = BN_bin2bn(gdata, glen, NULL); in get_dh_from_pg()
58 if (p == NULL || g == NULL) in get_dh_from_pg()
63 dhpkey = get_dh_from_pg_bn(libctx, type, p, g, q); 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()
165 dhpkey = get_dh_from_pg_bn(libctx, "DH", p, g, NULL); 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()
186 dhpkey = get_dh_from_pg_bn(libctx, "DH", p, g, NULL); in get_dh4096()
190 BN_free(g); in get_dh4096()