SHA256_RSA. INPUT DATA RANGE ERROR
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 170
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
I have 300 kb data, need to be signed by SHA256RSA algorithm. I read the data from a file with 'rb' option and then use this data as input for sign method , then I got following error. Any idea how to fix this bug, what is max length of input sign data, I search some pkcs11 and find that. there is no any limit for input data length
File "/usr/local/lib/python3.7/site-packages/pkcs11/types.py", line 939, in sign
return self._sign(data, **kwargs)
File "pkcs11/_pkcs11.pyx", line 1072, in pkcs11._pkcs11.SignMixin._sign
File "pkcs11/_pkcs11.pyx", line 1077, in pkcs11._pkcs11.SignMixin._sign
File "pkcs11/_errors.pyx", line 88, in pkcs11._pkcs11.assertRV
pkcs11.exceptions.DataLenRange
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the traceback at pkcs11/types.py:939 and pkcs11/_pkcs11.pyx:1072-1077, then reproduce the sign call using the 300 KB binary input. Determine whether DataLenRange comes from the wrapper or the PKCS#11 token, and document the applicable input limit or supported signing approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100