Lines Matching refs:pub_key
20 const BIGNUM *pub_key, int *ret)
27 if (params == NULL || pub_key == NULL || params->p == NULL) {
38 /* Step(1): Verify pub_key >= 2 */
42 if (BN_cmp(pub_key, tmp) <= 0) {
46 /* Step(1): Verify pub_key <= p-2 */
50 if (BN_cmp(pub_key, tmp) >= 0) {
67 const BIGNUM *pub_key, int *ret)
73 if (!ossl_ffc_validate_public_key_partial(params, pub_key, ret))
83 /* Check pub_key^q == 1 mod p */
85 || !BN_mod_exp(tmp, pub_key, params->q, params->p, ctx))