Group of quadratic residues modulo n
From CRYPTUTOR
The set
forms an abelian group under multiplication modulo n, with 1 representing the identity element. We call this group the group of quadratic residues modulo n. It is a subgroup of the multiplicative group
.
When n is an odd prime,
has
elements and is a cyclic group. Also, for each
, the value q in the above definition is unique within
, and called
. Further, when n is a safe prime,
is a group with prime order, and the Decisional Diffie-Hellman assumption is believed to hold in the group.
When n is a product of two primes p and q,
is isomorphic to the product group
.

