3 ms·
> Some said that the issue was not about crypto, but about software engineering. So it was someone else’s issue. So this was my issue on a project once. I had
by lordnacho 11y ago
> Some said that the issue was not about crypto, but about software engineering. So it was someone else’s issue.
So this was my issue on a project once. I had to make sure a certain signing process what the same on an app and the server.
The thing about crypto is there's some things about how it's used that are separate from the mathematical scheme. In ordinary programming we have this as well, but it's relatively easy to look inside the box to see what's happening.
Basically I couldn't be sure the implementations were the same until the Python and Java code were outputting the same using the same inputs. There was a lot of digging in documents involved, and a lot of fine print. For instance, some packages will let you sign a string "blahblah" with your key directly. This hides the fact that you are hashing the string into a number using some agreed hash algo. If your other implementation doesn't have it all conveniently packaged, you have to do the hash ans sign the number yourself. Not rocket science, but hard to figure out until it's done. The nice thing is it's unlikely to come out the same if there's something wrong.