Recursive discrete logarithm in prime-power-order groups #
Algorithm RDL (recursiveDlog) of [BS23], Section 16.1.2.1 (pp. 684–686), over
GroupOracleSpec n S: given a base g of order q ^ e, a target u = α • g, and a base-case
program base for order q, recursiveDlog splits e into ⌊e / 2⌋ and e - ⌊e / 2⌋,
computing u · g^(-β) as u · g^(q^e - β) via power and product.
Bounds count only oracle calls in the worst case over responses; every call is a product
(GroupQuery.IsProduct) when base makes only products (queriesSatisfy_recursiveDlog).
Constants 2 and 6 are this library's; exponent arithmetic and base-case table search are not
costed, and no machine-model bound is claimed.
Main definitions #
Cslib.Crypto.GenericGroup.recursiveDlog: Algorithm RDL overGroupOracleSpec n S.
Main results #
Cslib.Crypto.GenericGroup.evalPure_recursiveDlog,Cslib.Crypto.GenericGroup.queriesSatisfy_recursiveDlog,Cslib.Crypto.GenericGroup.isQueryBounded_recursiveDlog,Cslib.Crypto.GenericGroup.recursiveDlog_two_pow,Cslib.Crypto.GenericGroup.evalPure_groupAnswer_recursiveDlog.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 16.1.2.1, pp. 684–686.
Algorithm RDL ([BS23], Section 16.1.2.1, p. 685) over GroupOracleSpec n S.
Every query made by recursiveDlog is a product (GroupQuery.IsProduct) whenever base
makes only product queries.
Product-query bound for recursiveDlog when 2 ≤ q and 1 ≤ e, in the worst case over all
oracle responses. Constants 6 and 2 (in power) are this library's; exponent arithmetic and
base-case table search are not costed, and no machine-model bound is claimed.
Correctness. For s of additive order q ^ e (1 ≤ e) and a base-case solver base
correct on order q, recursiveDlog base q e (L s) (L (α * s)) outputs α for α < q ^ e.
Groups of order 2 ^ ℓ. Specialization of recursiveDlog with subgroupDlog 2 in
ZMod (2 ^ ℓ) ([BS23], Section 16.1.2.2, p. 686, the case n = 2 ^ ℓ, using
Algorithm RDL of Section 16.1.2.1, p. 685). Every query is a product by
queriesSatisfy_recursiveDlog and queriesSatisfy_subgroupDlog; the constant 6 is this
library's and no machine-model bound is claimed.
Correctness against groupAnswer. For a ZMod n-module G (n ≠ 0) and g of order
q ^ e = n, recursiveDlog (subgroupDlog q) q e g (α • g) outputs α.val.