3 ms·
Vendors learned the hard way that to verify an RSA signature, you have to reconstruct the entire m block you'd expect to see, and byte compare it to the entire
by cperciva 17y ago
Vendors learned the hard way that to verify an RSA signature, you have to reconstruct the entire m block you'd expect to see, and byte compare it to the entire "decrypted" m block from the certificate.
Not exactly. Yes, you have to verify the padding; no, you don't have to build a decrypted signature and compare the two byte by byte.
The lesson here is "use proper padding and follow the published instructions for verifying it".