Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OpenNCryptProvider()

static SafeNCryptProviderHandle System.Security.Cryptography.CngKeyLite.OpenNCryptProvider ( string providerName)
inlinestaticprivate

Definition at line 256 of file CngKeyLite.cs.

257 {
258 SafeNCryptProviderHandle phProvider;
259 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptOpenStorageProvider(out phProvider, providerName, 0);
260 if (errorCode != 0)
261 {
262 throw errorCode.ToCryptographicException();
263 }
264 return phProvider;
265 }