We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The doc: https://www.npmjs.com/package/ursa#public-key-methods states that the input buffer is limited to be no larger than the key size minus 41 bytes.
I tried disabling the padding that is used by passing RSA_NO_PADDING option, but it also doesn't work.
The error that I get is : error:0406B06E:rsa routines:RSA_padding_add_none:data too large for key size.
My input length is 256 bytes.
If it helps, I am trying to replicate some python code which uses this function:https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA._RSAobj-class.html#encrypt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The doc: https://www.npmjs.com/package/ursa#public-key-methods states that the input buffer is limited to be no larger than the key size minus 41 bytes.
I tried disabling the padding that is used by passing RSA_NO_PADDING option, but it also doesn't work.
The error that I get is : error:0406B06E:rsa routines:RSA_padding_add_none:data too large for key size.
My input length is 256 bytes.
If it helps, I am trying to replicate some python code which uses this function:https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA._RSAobj-class.html#encrypt
The text was updated successfully, but these errors were encountered: