Skip to content

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

Open

Description

@aykut-aktas

...\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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions