10 references to NCryptSetProperty
System.Security.Cryptography (10)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (1)
40
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(
System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs (1)
126
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(
System\Security\Cryptography\CngKey.Create.cs (5)
95
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(keyHandle, KeyPropertyName.KeyUsage, &keyUsage, sizeof(CngKeyUsages), CngPropertyOptions.Persist);
103
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(keyHandle, KeyPropertyName.ParentWindowHandle, &parentWindowHandle, sizeof(IntPtr), CngPropertyOptions.None);
121
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(keyHandle, property.Name, pValue, valueLength, property.Options);
149
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(keyHandle, KeyPropertyName.UIPolicy, &ncryptUiPolicy, sizeof(NCRYPT_UI_POLICY), CngPropertyOptions.Persist);
160
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(keyHandle, KeyPropertyName.UseContext, pinnedUseContext, useContextByteLength, CngPropertyOptions.Persist);
System\Security\Cryptography\CngKey.Properties.cs (1)
65
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(_keyHandle, property.Name, pinnedPropertyValue, propertyValue.Length, property.Options);
System\Security\Cryptography\CngKey.StandardProperties.cs (2)
145
ErrorCode errorCode = Interop.NCrypt.
NCryptSetProperty
(_keyHandle, KeyPropertyName.ClrIsEphemeral, &isEphemeral, sizeof(byte), CngPropertyOptions.CustomProperty);
283
Interop.NCrypt.
NCryptSetProperty
(_keyHandle, KeyPropertyName.ParentWindowHandle, &value, IntPtr.Size, CngPropertyOptions.None);