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

error.0400008d.RSA routines.OPENSSL_internal.TOO_MANY_ITERATIONS #136

Open
avinashboy opened this issue Jun 18, 2024 · 3 comments
Open

error.0400008d.RSA routines.OPENSSL_internal.TOO_MANY_ITERATIONS #136

avinashboy opened this issue Jun 18, 2024 · 3 comments

Comments

@avinashboy
Copy link

Recently, I've been getting this issue while creating the public key in debug mode. However, if I build the APK and test it on an Android box or Android TV,

I get this error: error.0400008d:RSA routines:OPENSSL_internal:TOO_MANY_ITERATIONS in Flutter.

WhatsApp Image 2024-06-17 at 11 33 18 AM

@avinashboy
Copy link
Author

avinashboy commented Jun 18, 2024

Device info is here:

Android TV OS Name: 11
Ram: 4GB
Model: Android 11RTC Mini PC
Device name: Leoxsys android mini pc

@jonasfj
Copy link
Member

jonasfj commented Jun 26, 2024

What are you trying to do?

I'm not a crypto expert, certainly not an embedded expert, but could this be a combination of low powered platform, little randomness available and aiming for large primes?

A quick search yielded: openssl/openssl#4151

It's possible we should figure out what the error is, and print a nicer message.

Now I wouldn't dare to give advice on how to do cryptographic protocols, but it's thinkable that smaller primes (fewer bits), or a different primitive like ECDSA might have differently.

@TimoshN
Copy link

TimoshN commented Oct 18, 2024

in 32bit system

produce incorrect BIGINT value set in
ffi.NativeFunction<ffi.Int Function(ffi.Pointer<BIGNUM>, BN_ULONG)>>(

as a temporary fix you may change typedef BN_ULONG = ffi.Uint64; to ffi.UnsignedLong

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

No branches or pull requests

3 participants