JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
542 stars 166 forks source link

Can't add custom message to blindly sign with protocol_a01 #228

Closed oscar-king closed 4 years ago

oscar-king commented 4 years ago

In the protocol the message that is blindly signed seems to be hard-coded into the methods:

epsilon = self.group.hash(zeta, zeta1, alpha, beta1, beta2, eta, "msg")

and

p2 = self.group.hash(zeta, zeta1, tmp1, tmp2, tmp3, tmp4, "msg")  
jakinyele commented 4 years ago

@oscar-king Could extend the protocol impl to include the input message via a command-line flag? I guess there are different ways to support custom messages. Feel free to submit a PR. Thanks!

oscar-king commented 4 years ago

@jakinyele True. Thanks for the reply!