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

OpenSSL::PKey::RSAError: padding check failed #3

Closed
rjharmon opened this issue Dec 8, 2009 · 1 comment
Closed

OpenSSL::PKey::RSAError: padding check failed #3

rjharmon opened this issue Dec 8, 2009 · 1 comment

Comments

@rjharmon
Copy link

rjharmon commented Dec 8, 2009

Docs are a bit unclear on this one. The data that can be encrypted with asymmetric-only is limited to the size of the key minus 11 bytes. Particularly:

  1. 2048 bits equals 256 bytes
  2. 245 bytes is the limit of the INCOMING data
  3. The encrypted data will be longer than the key, and won't fit into a 255 byte column

I understand that "a string field is unlikely to be able to store the result"... but more detail would be clearer.

Thanks!

@spikex
Copy link
Owner

spikex commented Dec 14, 2009

I spelled this out, and the 186 byte limit if using Base64 in the orignal post, but neglected to carry that language over into the docs. I've updated the docs to make it clearer.

This issue was closed.
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

2 participants