Skip to content

System.NullReferenceException PrivateKeyFactory #4

Description

@FeyverkSoft

Hi Cheng.

            var p = new ApplePayParameters
            {
                PrivateKey = "MIIEvQIBADANBgkqhkiG9w........=",
                EphemeralPublicKey = "MFkwEwYHKoZI.......==",
                MerchantIdentifier = "me...."
            };
            ApplePayTokenDecrypter d = new ApplePayTokenDecrypter();
            d.Init(p);
           var res = d.Decrypt("Q8JclPEJp....ZGYl","");

The Decryption method throws an exception on the call
PrivateKeyParameters = CreatePrivateKeyParameters ();
In the line
Return (ECPrivateKeyParameters) PrivateKeyFactory.CreateKey (privInfo);
Because of what this can be?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions