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

RSA keys of 2048 bits or more can't be saved or loaded #1

Open
jarto opened this issue Mar 13, 2013 · 4 comments
Open

RSA keys of 2048 bits or more can't be saved or loaded #1

jarto opened this issue Mar 13, 2013 · 4 comments
Assignees

Comments

@jarto
Copy link
Owner

jarto commented Mar 13, 2013

Saving a RSA key of 2048 bits or more does work, but loading the key gives errors.
It's still unclear where the problem is. So far I've verified that the big keys do work: Encrypting with a big public key works as well as decrypting the message with the private key.

@ghost ghost assigned jarto Mar 13, 2013
@PizzaProgram
Copy link

Hi,
Is this problem resolved since 2013?

We need to implement JSON Web Signature (JWS) under Lazarus, and for that RSA 4096bit signing.

@jarto
Copy link
Owner Author

jarto commented Apr 24, 2022

As far as I know, this has not been resolved. I'd be happy to merge a fix from someone who still uses this library and who knows where the problem is.

@PizzaProgram
Copy link

I've looked into the code and searched for older code too.
From those I know, that back in 2013 there was only 1024bit allowed.
Later they've added 2048 + 3072 bits. Link:

TRSACipherBlock3072 = array[0..cBytes3072-1] of Byte;

But 4096 is still missing! :(

@jarto
Copy link
Owner Author

jarto commented Apr 24, 2022

In that case it should be pretty easy to fix this issue. If you can't do it yourself, maybe you could contact Todd who did the previous fix? I'm not using LockBox any more myself. The original fixes and improvements I did when I needed to use LockBox in 64bit environment.

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