mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
CngKeyBlobFormat was never included in the build, but anyway we can include the one from referencesource now. Detected by a user of Npgsql 3.0.5 which reported the problem in stackoverflow: http://stackoverflow.com/questions/35016066/failure-to-resolve-system-security-cryptography-cngkeyblobformat-when-using-npgs
Even if CNG is replacing CryptoAPI there is still new stuff, well wrappers, being added. This is important, for Windows users, since CNG is only available in Windows Vista (and later OS). Since Mono does not support CryptoAPI (even on Windows) all the classes with a CryptoServiceProvider suffix are wrappers around managed implementations of the same cryptographic algorithm. New CSP crypto classes Wrapper around ---------------------- -------------- AesCryptoServiceProvider RijndaelManaged [1] SHA256CryptoServiceProvider SHA256Managed [mscorlib] SHA384CryptoServiceProvider SHA384Managed [mscorlib] SHA512CryptoServiceProvider SHA512Managed [mscorlib] [1] Not a true wrapper but a copy of the source. This is required since AesManaged is available in Silverlight 2.0 (and RijndaelManaged is not available in mscorlib).