ginger-lib icon indicating copy to clipboard operation
ginger-lib copied to clipboard

Allow personalization in FieldBasedHash gadgets too

Open 95DDB opened this issue 5 years ago • 0 comments

Currently, the FieldBasedHash trait init function allows to initialize an implementor with a personalization array of FieldElement. The FieldBasedHashGadget instead doesn't allow this. The result of primitive and gadget it's the same if the primitive is initialized with no personalization, or if the gadget takes as additional input the personalization and as many Field Elements as envisioned by the variable-length padding strategy. Let's modify the gadget to be able to take as input a personalization too, hiding this logic from the user.

95DDB avatar Oct 29 '20 16:10 95DDB