@sabrina hou
Hi,
You could find some info below:
https://social.msdn.microsoft.com/Forums/en-US/ccbcb840-011f-4e10-be31-4ec8a46739b5/what-is-the-replacement-for-custom-csp-since-cryptoapi-is-being-deprecated-as-announced-?forum=windowssecurity
Also, according to your description, your issue seems more related with CNG API. To help you better, I suggest you submit a new case on the following Q&A as they will be more professional on your issue:
https://learn.microsoft.com/en-us/answers/topics/winapi-security.html
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thank you for your understanding.
Hope above information can help you.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.