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

◆ SetKeyLength()

static unsafe void System.Security.Cryptography.CngKeyLite.SetKeyLength ( SafeNCryptKeyHandle keyHandle,
int keySize )
inlinestaticprivate

Definition at line 232 of file CngKeyLite.cs.

233 {
234 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptSetProperty(keyHandle, "Length", &keySize, 4, CngPropertyOptions.Persist);
235 if (errorCode != 0)
236 {
237 throw errorCode.ToCryptographicException();
238 }
239 }

Referenced by System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey().