Okamoto identification is perfectly correct
ProvedCryptologyCity.okamoto_correctcryptographycryptology-citydiscrete-logarithm
Let generate a group of order and let . For all , the Okamoto verifier for accepts with .
Preamble
import Definitions.Def_CryptologyCity_DLogIdentification open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem okamoto_correct {G : Type*} [Group G] [DecidableEq G] (g : G) (p : ℕ) [NeZero p]
(hg : IsCyclicGroupOfOrder g p) (g₂ : G) (x₁ x₂ r₁ r₂ e : ZMod p) :
okamotoAccepts g g₂ (g ^ x₁.val * g₂ ^ x₂.val) (g ^ r₁.val * g₂ ^ r₂.val) e
(r₁ + e * x₁) (r₂ + e * x₂) = true := by sorry
end CryptologyCitySource
Cryptology City, Okamoto identification ⇒ non-trivial canonical identification, https://cryptology.city/Reductions/okamoto-identification-protocol-to-non-trivial-canonical-identification-scheme (perfectly correct). Cryptology City, DLOG ⇒ Okamoto identification, https://cryptology.city/Reductions/prime-order-dlog-to-okamoto-identification-protocol-oka92. Okamoto, CRYPTO 1992, https://doi.org/10.1007/3-540-48071-4_3.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.