I am working on a project related minidriver to perform operations in smart card.
I have register smartcard in registry with proper ATR and minidriver information. Now I am trying to generate keypair using CNG -> minidriver -> smart card.
To achieve this I have called NcryptOpenStorageProvider from test application which returns success.
Now when I call NCryptCreatePersistedKey and NCryptFinalizeKey it can't communicate with smartcard.
In minidriver it calls "CardAuthenticateEX" and fails in SCardTransmit, though the previous commands for finding path and searching objects like CardGetProperty, CardReadFile can communicate with smart card successfully.