From 2274160221523cb8c89d91d90498570947533a64 Mon Sep 17 00:00:00 2001 From: Vesselin Velichkov Date: Mon, 31 Oct 2022 12:02:18 +0000 Subject: [PATCH] anemoi: added formal reference to the eprint version of the Anemoi paper (cf. https://github.com/clearmatics/libsnark/pull/65#discussion_r992439955) --- .../gadgets/hashes/anemoi/anemoi_components.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.hpp b/libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.hpp index 37b8d5fa6..fb18db7f4 100644 --- a/libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.hpp +++ b/libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.hpp @@ -11,6 +11,17 @@ #include +/// Implementation of the Anenoi arithmetization-oriented hash function +/// +/// Reference: +/// - \[BBCPSVW22]: +/// Title: "New Design Techniques for Efficient +/// Arithmetization-Oriented Hash Functions: Anemoi Permutations and +/// Jive Compression Mode", Clemence Bouvier, Pierre Briaud, Pyrros +/// Chaidos, Leo Perrin, Robin Salen, Vesselin Velichkov, Danny +/// Willems, Cryptology ePrint Archive, Report 2022/840, 2019, +/// + namespace libsnark { @@ -232,7 +243,7 @@ class flystel_E_root_five_gadget : public gadget /// y0 = x0 - a0 + a2 /// y1 = x1 - a1 /// -/// \note: in the paper (x0,x1)->(y0,y1) is denoted with (x,y)->(u,v) +/// \note: in [BBCPSVW22] (x0,x1)->(y0,y1) is denoted with (x,y)->(u,v) template class flystel_prime_field_gadget : public gadget {