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

◆ SetProperty()

static unsafe void System.Security.Cryptography.CngKeyLite.SetProperty ( SafeNCryptHandle ncryptHandle,
string propertyName,
byte[] value )
inlinestaticprivate

Definition at line 326 of file CngKeyLite.cs.

327 {
328 fixed (byte* pbInput = value)
329 {
330 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptSetProperty(ncryptHandle, propertyName, pbInput, value.Length, CngPropertyOptions.None);
331 if (errorCode != 0)
332 {
333 throw errorCode.ToCryptographicException();
334 }
335 }
336 }

References System.value.

Referenced by System.Security.Cryptography.CngKeyLite.GenerateNewExportableKey(), and System.Security.Cryptography.CngKeyLite.SetCurveName().