Searched refs:two_powN (Results 1 – 2 of 2) sorted by relevance
/openssl/crypto/ffc/ |
H A D | ffc_key_generate.c | 26 BIGNUM *m, *two_powN = NULL; in ossl_ffc_generate_private_key() local 38 two_powN = BN_new(); 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() 44 m = (BN_cmp(two_powN, params->q) > 0) ? params->q : two_powN; in ossl_ffc_generate_private_key() 48 if (!BN_priv_rand_range_ex(priv, two_powN, 0, ctx) in ossl_ffc_generate_private_key() 58 BN_free(two_powN); in ossl_ffc_generate_private_key()
|
/openssl/crypto/dh/ |
H A D | dh_check.c | 281 BIGNUM *two_powN = NULL, *upper; in ossl_dh_check_priv_key() local 284 two_powN = BN_new(); in ossl_dh_check_priv_key() 285 if (two_powN == NULL) in ossl_dh_check_priv_key() 314 if (!BN_lshift(two_powN, BN_value_one(), dh->length)) in ossl_dh_check_priv_key() 316 if (BN_cmp(two_powN, dh->params.q) < 0) in ossl_dh_check_priv_key() 317 upper = two_powN; in ossl_dh_check_priv_key() 324 BN_free(two_powN); in ossl_dh_check_priv_key()
|
Completed in 5 milliseconds