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
I have been using your library and I have a question about the secretbox function. In the documentation, it states that the first 32 bytes of the message must be zero. Can you explain why this is necessary?
Thank you for your time and for creating this library.
Best regards,
Aitor Ruiz
The text was updated successfully, but these errors were encountered:
Upon further investigation, I discovered that the function was not working because the first 16 bytes needed to be removed. This was resolved by comparing it with the JS implementation, with which I am more familiar.
While examining this problem, I began to wonder why the library does not include padding in front or remove the first 16 bytes automatically.
Additionally, I am curious whether it would be beneficial to implement a minimum length check of 32 in the C FFI implementation.
I would greatly appreciate your thoughts on this matter. Thank you for your time and consideration.
Dear sodalite developer,
I have been using your library and I have a question about the
secretbox
function. In the documentation, it states that the first 32 bytes of the message must be zero. Can you explain why this is necessary?Thank you for your time and for creating this library.
Best regards,
Aitor Ruiz
The text was updated successfully, but these errors were encountered: