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

infinity waiting when rsa sign #33

Closed
cwangfr opened this issue Feb 14, 2022 · 7 comments
Closed

infinity waiting when rsa sign #33

cwangfr opened this issue Feb 14, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@cwangfr
Copy link

cwangfr commented Feb 14, 2022

Hi, I have a strange problem here. When I use the RSA SignPSS feature, there is an infinite wait.
I use Android Studio, use usb cable connect with my Samsung Tab7.
If I start program on device, keep usb cable connect, the function always ok,
but, when I start program, and then disconnect the usb cable, the signPSS could not return result.
here is my code :

final _pkcs12KeyPair = await RSA.convertPKCS12ToKeyPair(
    (await rootBundle.loadString('assets/key.base64')), "miipos");
var signature = await RSA.signPSS(
    value, Hash.SHA512, SaltLength.AUTO, _pkcs12KeyPair.privateKey); // always waiting there, never return the result signature

var result = signature.replaceAll("+", "-").replaceAll("/", "_");
debugPrint(result);
debugPrint("****** end sign ******");

thanks

@zaqzaq163
Copy link

Have you found a solution?

@jerson
Copy link
Owner

jerson commented Mar 27, 2023

Hi @zaqzaq163 , @cwangfr thanks for report this issue, please could you provide a full example to help me to reproduce it here

@jerson jerson self-assigned this Mar 27, 2023
@jerson jerson added the bug Something isn't working label Mar 27, 2023
@zaqzaq163
Copy link

Hi @jerson, I use IOS device, when I transfer code from swift to objective-c and submit to testflight, signPKCS1v15 can't return result and wait infinitely

@jerson
Copy link
Owner

jerson commented Apr 16, 2023

@zaqzaq163 which version are you using?

@zaqzaq163
Copy link

I have tested version 3.5.3 and 3.5.6, it doesn't work

@jerson
Copy link
Owner

jerson commented Apr 24, 2023

Hi @zaqzaq163 I'm still trying to reproduce it, but I couldn't, could you provide me a full example with a sample private key or a pkcs12 and the arguments you are using

@jerson
Copy link
Owner

jerson commented Apr 24, 2023

@zaqzaq163 I just released a new version, please take a look when you get a chance https://pub.dev/packages/fast_rsa/versions/3.5.7 if doesn't work either please send me a full example to try to reproduce it here, thank you.

@jerson jerson closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants