-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for elliptic curve private keys #158
Conversation
the change looks ok, but please add a test to verify the change, e.g. in tests/test_pdf.py, place the test key and certificate in tests/fixtures assert len(zeros) == len(contents) |
I tried to execute the existing tests before implementing a new test, but I get the following error. Can you please give me a hint how to get them working?
|
I run tests and coverage via" Ran 37 tests in 7.692s |
Thanks, I used the cryptography lib v3.4.8 from my Ubuntu system. After I upgraded to 41.0.7 via pip, the test error was gone. I added tests for signing and verifying with EC keys. This perfectly demonstrates the |
Best answer for AssertionError https://transactionfee.info/charts/bitcoin-script-ecdsa-length/ The simplest workaround is to set the value for the aligned variable to something other than zero, in the given test 4096 is sufficient. |
Thanks for the explanation. I added 4096 as default for EC keys and adjusted the test |
Do you plan to create a new release? I'd like to use EC keys with your library. |
sorry, I forgot about the tag in git, 2.17.0 is in pypi |
Thanks! |
Currently, when trying to use a elliptic curve key to sign a PDF, the following error appears:
This change adds support for elliptic curve private keys. It works in general but sometimes (using the same certificate, PDF file and code) the following error appears:
I'm not sure where the problem is here. My guess is that it is something related with the timestamp used for signing. Maybe you can help with this issue?