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

GetEllipticCurveAlgorithm method is a significant contributor to any performance issues before optimizing it. #6

Open
bierquelle06 opened this issue Aug 22, 2023 · 0 comments

Comments

@bierquelle06
Copy link
Member

...\src\AdsPush.APNS\Helpers\AppleCryptoHelper.cs

The GetEllipticCurveAlgorithm method is responsible for converting a given base64-encoded private key into an ECDsa instance.

This process involves creating an instance of ECPrivateKeyParameters from the private key, performing point multiplication and normalization, and finally constructing an ECDsa object.

While this process isn't inherently slow, if this method is called frequently in a performance-critical context, you might want to consider potential optimizations.

Conversion Overhead: The process of converting the private key and performing point multiplication can be computationally intensive, especially if it's being done frequently. Keep in mind that working with elliptic curve cryptography involves mathematical operations that can be resource-intensive.

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