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

Execution speed in react native #18

Open
GitMark0 opened this issue Feb 6, 2024 · 0 comments
Open

Execution speed in react native #18

GitMark0 opened this issue Feb 6, 2024 · 0 comments

Comments

@GitMark0
Copy link

GitMark0 commented Feb 6, 2024

Environment

  • Library Version: paillier-bigint 3.4.3
  • React Native Version: 0.73.3
  • React Native Quick Crypto Version: 0.6.1
  • Platform: iOS

Description

I'm currently integrating the paillier-bigint library into a React Native project for secure data encryption and decryption. To support cryptographic functions, I've installed and configured react-native-quick-crypto as outlined in the documentation (react-native-quick-crypto).

However, I'm experiencing what seems to be significant performance overhead:

  • Encryption Time: ~3.3 seconds (with 2048 bits key)
  • Decryption Time: ~2 seconds (with 2048 bits key)

Expected Behavior

Based on the documentation and typical performance metrics for mobile devices, I anticipated quicker execution times for both encryption and decryption processes. It's unclear whether these observed times are expected or if they indicate a potential performance issue.

Steps to Reproduce

  1. Install react-native-quick-crypto following the instructions in the repository.
  2. Implement encryption and decryption using paillier-bigint.
  3. Measure the execution time for encryption and decryption.

Question

Is the observed execution time within the expected range for the given setup, or are there potential optimizations/configuration adjustments that could improve performance?

Thanks!

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