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

RSAPrivateKey totient function (issue/question) #207

Open
andry-brill opened this issue Sep 24, 2023 · 0 comments
Open

RSAPrivateKey totient function (issue/question) #207

andry-brill opened this issue Sep 24, 2023 · 0 comments

Comments

@andry-brill
Copy link

andry-brill commented Sep 24, 2023

Now

In api.dart uses Euler totient function to calculate _pubExp in RSAPrivateKey.

But

Most modern implementations of RSA generators apply the Carmichael totient function lcm(p - 1, q - 1).

And when I'm generating RSAPrivateKey outside of the pc-dart calculated _pubExp != original.

More details in question on stackoverflow

Not expert in security, so I don't know consequences, but from development's side it feels strange.

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