Skip to content

SHA256_RSA. INPUT DATA RANGE ERROR #126

@spidemen

Description

@spidemen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    vendorThis is a PKCS#11 vendor bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions