Open andry-brill opened 10 months ago
In api.dart uses Euler totient function to calculate _pubExp in RSAPrivateKey.
_pubExp
RSAPrivateKey
Most modern implementations of RSA generators apply the Carmichael totient function lcm(p - 1, q - 1).
lcm(p - 1, q - 1)
And when I'm generating RSAPrivateKey outside of the pc-dart calculated _pubExp != original.
pc-dart
_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.
Now
In api.dart uses Euler totient function to calculate
_pubExp
inRSAPrivateKey
.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
.Not expert in security, so I don't know consequences, but from development's side it feels strange.