Closed eduBKR closed 5 years ago
Indeed that is valid. Not sure if I will have the time to makebthe change. Please, PR.
Btw, I am planning to remove (or move out) verification from this package for future versions. It may be moved to a separate package. But verificaation is quite more complex than what is available in the package and needs separate attention.
This has been fixed in the extractSignature
of 1.0.0 and 0.3.2. Signature verification is no longer part of the package as of 1.0.0.
I tried to verify some the signature of PDFs, and it fails when trying to extract the signature form the files. I make some tests with many files and I notice the ByteRange has, in some cases, an empty space at the end of the ByteRange, like this:
And to make work properly with this case, the regex that gets the match, need to be modified to something like this:
If You want, I can make a PR with the fix, it's a simple thing, but it will help me a lot.