Skip to content

System.NullReferenceException PrivateKeyFactory #4

@FeyverkSoft

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?

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