Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为智能卡编写应用程序。我知道我的应用程序如何使用 CryptSetProvParam 方法获取 PIN,但我不知道在使用 CryptoAPI NG 时如何做同样的事情。我想阻止 PIN 请求 UI 窗口弹出。
设置 CspParameters.KeyPassword 等效于使用 PP_KEYEXCHANGE_PIN(或 PP_SIGNATURE_PIN)调用 CryptSetProvParam。默认 Microsoft 加密服务提供程序不支持此标志(它旨在与基于智能卡的 CSP 一起使用)。