Group generator
A group generator is an efficient randomized algorithm that, on input , outputs a description of a cyclic group , its order and a generator , with each element of encoded by one bit string on which the group operation and inversion are efficiently computable. The DLOG, CDH and DDH games are stated for such a .
Definition
A group generator is a algorithm that on input outputs a triple of bits, where describes a cyclic group of order , is written in binary, and is the encoding of a generator of . The description fixes an injective encoding of the elements of as bit strings of bits, and fixed deterministic polynomial-time algorithms, given and the encodings of , output the encodings of and . Equality of elements is equality of their encodings.
The triple is short, but the group need not be: , while may be superpolynomial in . With , the map is a bijection from to , and square-and-multiply computes with group operations, so the challengers of the DLOG, CDH and DDH games are efficient — standard. If DLOG is hard for , then for every constant the probability that is negligible: the adversary that tries every when wins with at least that probability — standard.
A generic algorithm uses nothing beyond what every group generator provides: the group operation, inversion and equality of encodings. The base notion requires nothing more, and the variants of the assumptions add the rest:
- Prime order. DLOG in prime-order groups and DDH in prime-order groups require to be prime, so that exponents form the field .
- Compact encodings. DLOG in compactly encoded prime-order groups requires encodings of fewer than bits.
- Membership and verifiability. The base notion gives no way to decide whether a string encodes an element of . DDH with decidable membership adds such a test for the groups outputs, and DLOG in verifiable prime-order groups adds an algorithm deciding, for an arbitrary , whether is a group of prime order generated by and .
- Representation by integers. DLOG in efficiently represented groups adds mutually inverse deterministic polynomial-time bijections between and .
- A fixed family. DLOG in the multiplicative group of a prime field and DLOG in prime-order subgroups of twisted Edwards curves fix the kind of group.
A bilinear group generator, also written , outputs groups of prime order , generators of and of , and a pairing ; see Type 3 pairings and -DLOG.
Standard instances
The multiplicative group of a prime field
For a prime , the nonzero residues modulo form a cyclic group of order under multiplication — GB08 (Theorem 2.18). Elements are encoded as integers in , multiplied modulo and inverted by the extended Euclidean algorithm — GB08 (Appendix C.11). Given the prime factors of , an element generates if and only if for every prime — GB08 (Claim 2.27). The order is even for , and for a generator the Legendre symbol of is , so it reveals — standard; see DDH attacks.
Prime-order subgroups of the multiplicative group
For primes and with , the cyclic group has exactly one subgroup of order ,
It has prime order, so every element other than generates it, and decides membership — standard. A group generator of this kind outputs , and for some with , and encodes elements as integers in ; its groups are called Schnorr groups.
The quadratic residues modulo a safe prime are the case : the subgroup of order is the group of squares , membership in it is Euler’s criterion (GB08, Theorem 2.22), and generates it for every — standard. Its encodings are compact in the sense of DLOG in compactly encoded prime-order groups.
Elliptic curves
Let be a finite field of characteristic other than and , and let with . The elliptic curve , in short Weierstrass form, has as its -points the set of solutions together with a point , the point at infinity; the condition makes the curve nonsingular — GB08 (Definition C.36). Written additively, with the -fold sum , is an abelian group with identity under the following law — GB08 (Appendix C.11):
- , and whenever ;
- otherwise, for and , with and , where if , and if .
For a prime , Hasse’s inequality bounds the order: — GB08 (Appendix C.11.4). Over every finite field, . TODO: cite Hasse’s theorem for prime powers . Schoof’s algorithm computes deterministically in time polynomial in — Sch85 (Section 3, as credited by Poo17, Section 1); for a prime field, GB08 (Appendix C.9.10) state its running time as .
A group generator of this kind outputs a description of , the coefficients , a prime and a point with , and its group is , of order ; the integer is the cofactor. When , is the only subgroup of of order , so a point lies in it if and only if , and for every — standard. With cofactor , itself has prime order and every point other than generates it. Points are encoded by their affine coordinates, with one more string for , or compressed to and one bit that selects among the two roots; DLOG in compactly encoded prime-order groups says which encodings are compact.
Twisted Edwards curves
Let be a finite field of characteristic other than and , and let be distinct and nonzero. The twisted Edwards curve has identity , negation , and addition
wherever the denominators are nonzero; it is birationally equivalent to a curve in short Weierstrass form — MHM08 (Section 3). TODO: cite the condition under which the addition law is defined for all pairs of points of . Twisted Edwards curves generalize Edwards curves and include every elliptic curve in Montgomery form — BBJLP08. A group generator of this kind outputs the curve and a point of prime order , and its group is ; this is the setting of DLOG in prime-order subgroups of twisted Edwards curves and of EdDSA.