Skip to content
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

SHA256_RSA. INPUT DATA RANGE ERROR #126

Open
spidemen opened this issue Jun 3, 2021 · 0 comments
Open

SHA256_RSA. INPUT DATA RANGE ERROR #126

spidemen opened this issue Jun 3, 2021 · 0 comments

Comments

@spidemen
Copy link

spidemen commented Jun 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant