forked from secana/PeNet
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The signature is checked using the System.Security.Cryptography.Pkcs package. This package unfortunately doesn't support .NET Framework 4.0 which is why I had to drop support for that target framework. A test case ensures that the verification actually works. It uses a manipulated binary where the signature shouldn't be valid any more. I simply changed 1 bit in the binary and then exchanged the included hash so it matches the changed binary. The previous verification reported the signature as valid as it only compared the hashes. Unfortunately, two other test cases are failing now where the signature is reported as invalid, but it should be valid. Fixes secana#59
- Loading branch information
1 parent
0458c44
commit e73a1de
Showing
5 changed files
with
29 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters