Skip to content

RSAPrivateKey totient function (issue/question) #207

Open

Description

@andry-brill

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions