问题 I have a code that encrypts a file using AES CFB mode. While the code runs correctly in Windows 7, Windows 8 and previous versions of Windows 10, on Windows 10 Creators Update this line fails: if (!CryptAcquireContext(&hProv, NULL, MS_ENH_RSA_AES_PROV, PROV_RSA_AES, 0)) { std::cout << "CryptAcquireContext Error\n"; return 1; } What could be the reason for it? P.S I saw that it is deprecated on MSDN, but I thought that function was so common. 来源: https://stackoverflow.com/questions/48622293