You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qDSA is re-using the NaCl API (IIRC). Without looking at the code, it is possible that mlen always equals smlen - 64 and the parameter is not necessary for qDSA. But the API is fixed...
Indeed this is an error in the code, the API should be identical to crypto_sign_open; it was actually intended to resemble the SUPERCOP API (https://bench.cr.yp.to/call-sign.html), which I believe NaCl also follows. As NaCl and us always have 64-byte signatures the use of mlen is technically unnecessary (since it is just smlen-64), but I suppose SUPERCOP wants to leave open the option of variable-length signatures which would explain the use of both mlen and smlen.
I'm thinking of using qDSA for a small IOT project that I'm working on, and while exploring the API, I had a question.
the
long long mlen
, shouldn't it be either not there, or actually a pointer, since the first thing you do is override the value withsmlen - 64
?The text was updated successfully, but these errors were encountered: