Lines Matching refs:generator
447 static int ecp_sm2p256_is_affine_G(const EC_POINT *generator) in ecp_sm2p256_is_affine_G() argument
449 return (bn_get_top(generator->X) == P256_LIMBS) in ecp_sm2p256_is_affine_G()
450 && (bn_get_top(generator->Y) == P256_LIMBS) in ecp_sm2p256_is_affine_G()
451 && is_equal(bn_get_words(generator->X), def_xG) in ecp_sm2p256_is_affine_G()
452 && is_equal(bn_get_words(generator->Y), def_yG) in ecp_sm2p256_is_affine_G()
453 && (generator->Z_is_one == 1); in ecp_sm2p256_is_affine_G()
574 const EC_POINT *generator = NULL; in ecp_sm2p256_points_mul() local
589 generator = EC_GROUP_get0_generator(group); in ecp_sm2p256_points_mul()
590 if (generator == NULL) { in ecp_sm2p256_points_mul()
600 if (ecp_sm2p256_is_affine_G(generator)) { in ecp_sm2p256_points_mul()
609 new_generator[0] = generator; in ecp_sm2p256_points_mul()