OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:dh_pub
(Results
1 - 6
of
6
) sorted by relevancy
/src/crypto/external/bsd/openssh/dist/
kexdh.c
70
kex_dh_compute_key(struct kex *kex, BIGNUM *
dh_pub
, struct sshbuf *out)
78
fprintf(stderr, "
dh_pub
= ");
79
BN_print_fp(stderr,
dh_pub
);
81
debug("bits %d", BN_num_bits(
dh_pub
));
86
if (!dh_pub_is_valid(kex->dh,
dh_pub
)) {
96
if ((kout = DH_compute_key(kbuf,
dh_pub
, kex->dh)) < 0 ||
176
BIGNUM *
dh_pub
= NULL;
local
186
(r = sshbuf_get_bignum2(buf, &
dh_pub
)) != 0)
189
if ((r = kex_dh_compute_key(kex,
dh_pub
, buf)) != 0)
194
BN_free(
dh_pub
);
[
all
...]
kexecdh.c
138
EC_POINT *
dh_pub
= NULL;
local
151
if ((
dh_pub
= EC_POINT_new(group)) == NULL) {
155
if ((r = sshbuf_get_ec(buf,
dh_pub
, group)) != 0) {
162
sshkey_dump_ec_point(group,
dh_pub
);
164
if (sshkey_ec_validate_public(group,
dh_pub
) != 0) {
173
if (ECDH_compute_key(kbuf, klen,
dh_pub
, key, NULL) != (int)klen) {
198
EC_POINT_clear_free(
dh_pub
);
dh.c
237
dh_pub_is_valid(const DH *dh, const BIGNUM *
dh_pub
)
240
int n = BN_num_bits(
dh_pub
);
247
if (BN_is_negative(
dh_pub
)) {
251
if (BN_cmp(
dh_pub
, BN_value_one()) != 1) { /* pub_exp <= 1 */
261
BN_cmp(
dh_pub
, tmp) != -1) { /* pub_exp > p-2 */
269
if (BN_is_bit_set(
dh_pub
, i))
274
* if g==2 and bits_set==1 then computing log_g(
dh_pub
) is trivial
/src/crypto/dist/ipsec-tools/src/racoon/
crypto_openssl.c
2248
BIGNUM *
dh_pub
= NULL;
local
2256
if (eay_v2bn(&
dh_pub
, pub2) < 0)
2288
if ((l = DH_compute_key(v,
dh_pub
, dh)) == -1)
2295
BN_free(
dh_pub
);
/src/crypto/external/bsd/openssl/dist/providers/fips/
self_test_data.inc
904
static const unsigned char
dh_pub
[] = {
1017
ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_PUB_KEY,
dh_pub
),
/src/crypto/external/apache2/openssl/dist/providers/fips/
self_test_data.inc
921
static const unsigned char
dh_pub
[] = {
1033
ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_PUB_KEY,
dh_pub
),
Completed in 32 milliseconds
Indexes created Sun Oct 04 00:26:11 UTC 2026