On Friday, 30 October 2015 16:45:21 UTC+2, konark modi wrote:
Hi,
I am currently working on creating a RSA based blind signature scheme between JS and Nginx-Lua backend.
The flow is as follows:
1. Client generates a message.
2. Message is hashed with sha-256.
3. Then nonce is added and message is blinded.
4. This blinded message is sent to the server for signing purpose.
5. Now when I sign it with pkey.sign(), the documentation says the output is string but not sure what format is it and how do I send it back to the client, which will send it to a different authority to verify.
I'm not sure if this helps, and this it not a direct answer to your question, but I have been writing bindings to Nettle. I have also done some RSA bindings, but that is more or less still incomplete (and I may have got some details wrong):
https://github.com/bungle/lua-resty-nettle/blob/master/lib/resty/nettle/rsa.lua
Maybe you can check it out and even contribute something back. The Nettle API is simple.