You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
@@ -98,7 +98,7 @@ public static extern NTSTATUS BCryptOpenAlgorithmProvider(
98
98
/// </param>
99
99
/// <param name="dwFlags">Flags that modify the behavior of the function.</param>
100
100
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
101
-
[DllImport(nameof(BCrypt),SetLastError=true)]
101
+
[DllImport(nameof(BCrypt))]
102
102
publicstaticexternunsafeNTSTATUSBCryptCreateHash(
103
103
SafeAlgorithmHandlehAlgorithm,
104
104
outSafeHashHandlephHash,
@@ -145,7 +145,7 @@ public static extern unsafe NTSTATUS BCryptCreateHash(
145
145
/// Multi-hash objects are always reusable and always behave as if the <see cref="BCryptCreateHashFlags.BCRYPT_HASH_REUSABLE_FLAG"/> was passed. This flag is supported here for consistency.
146
146
/// </param>
147
147
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
@@ -195,7 +195,7 @@ public static extern unsafe NTSTATUS BCryptCreateMultiHash(
195
195
/// <remarks>
196
196
/// The <paramref name="pbInput"/> and <paramref name="pbOutput"/> parameters can point to the same buffer. In this case, this function will perform the encryption in place. It is possible that the encrypted data size will be larger than the unencrypted data size, so the buffer must be large enough to hold the encrypted data.
197
197
/// </remarks>
198
-
[DllImport(nameof(BCrypt),SetLastError=true)]
198
+
[DllImport(nameof(BCrypt))]
199
199
publicstaticunsafeexternNTSTATUSBCryptEncrypt(
200
200
SafeKeyHandlehKey,
201
201
byte*pbInput,
@@ -246,7 +246,7 @@ public static unsafe extern NTSTATUS BCryptEncrypt(
246
246
/// A set of flags that modify the behavior of this function. The allowed set of flags depends on the type of key specified by the <paramref name="hKey"/> parameter.
247
247
/// </param>
248
248
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
249
-
[DllImport(nameof(BCrypt),SetLastError=true)]
249
+
[DllImport(nameof(BCrypt))]
250
250
publicstaticunsafeexternNTSTATUSBCryptDecrypt(
251
251
SafeKeyHandlehKey,
252
252
byte*pbInput,
@@ -275,7 +275,7 @@ public static unsafe extern NTSTATUS BCryptDecrypt(
275
275
/// To combine more than one buffer into the hash or MAC, you can call this function multiple times, passing a different buffer each time. To obtain the hash or MAC value, call the <see cref="BCryptFinishHash(SafeHashHandle, byte*, int, BCryptFinishHashFlags)"/> function.
276
276
/// After the <see cref="BCryptFinishHash(SafeHashHandle, byte*, int, BCryptFinishHashFlags)"/> function has been called for a specified handle, that handle cannot be reused.
277
277
/// </remarks>
278
-
[DllImport(nameof(BCrypt),SetLastError=true)]
278
+
[DllImport(nameof(BCrypt))]
279
279
publicstaticexternunsafeNTSTATUSBCryptHashData(
280
280
SafeHashHandlehHash,
281
281
byte*pbInput,
@@ -305,7 +305,7 @@ public static extern unsafe NTSTATUS BCryptHashData(
305
305
/// Each element of the pOperations array contains instructions for a particular computation to be performed on a single element of the multi-object state. The functional behavior of BCryptProcessMultiOperations is equivalent to performing, for each element in the multi-object state, the computations specified in the operations array for that element, one at a time, in order.
306
306
/// The relative order of two operations that operate on different elements of the array is not guaranteed.If an output buffer overlaps an input or output buffer the result is not deterministic.
@@ -328,7 +328,7 @@ public static extern unsafe NTSTATUS BCryptProcessMultiOperations(
328
328
/// </param>
329
329
/// <param name="dwFlags">A set of flags that modify the behavior of this function.</param>
330
330
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
331
-
[DllImport(nameof(BCrypt),SetLastError=true)]
331
+
[DllImport(nameof(BCrypt))]
332
332
publicstaticexternunsafeNTSTATUSBCryptFinishHash(
333
333
SafeHashHandlehHash,
334
334
byte*pbOutput,
@@ -366,7 +366,7 @@ public static extern unsafe NTSTATUS BCryptFinishHash(
366
366
/// <remarks>
367
367
/// To later verify that the signature is valid, call the <see cref="BCryptVerifySignature(SafeKeyHandle, void*, byte*, int, byte*, int, BCryptSignHashFlags)"/> function with an identical key and an identical hash of the original data.
368
368
/// </remarks>
369
-
[DllImport(nameof(BCrypt),SetLastError=true)]
369
+
[DllImport(nameof(BCrypt))]
370
370
publicstaticunsafeexternNTSTATUSBCryptSignHash(
371
371
SafeKeyHandlehKey,
372
372
void*pPaddingInfo,
@@ -407,7 +407,7 @@ public static unsafe extern NTSTATUS BCryptSignHash(
407
407
/// Returns a status code that indicates the success or failure of the function.
408
408
/// In particular, an invalid signature will produce a <see cref="NTSTATUS.Code.STATUS_INVALID_SIGNATURE"/> result.
@@ -464,7 +464,7 @@ public static extern NTSTATUS BCryptGenerateKeyPair(
464
464
/// </param>
465
465
/// <param name="flags">A set of flags that modify the behavior of this function. No flags are currently defined, so this parameter should be zero.</param>
466
466
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
@@ -549,7 +549,7 @@ public static extern unsafe NTSTATUS BCryptImportKey(
549
549
/// <param name="cbInput">The size, in bytes, of the <paramref name="pbInput"/> buffer.</param>
550
550
/// <param name="dwFlags">A set of flags that modify the behavior of this function. This can be zero or the following value: BCRYPT_NO_KEY_VALIDATION</param>
551
551
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
@@ -714,7 +714,7 @@ public static extern NTSTATUS BCryptSetProperty(
714
714
/// <param name="resultSize">A pointer to a ULONG variable that receives the number of bytes that were copied to the pbOutput buffer. If the <paramref name="output"/> parameter is NULL, this function will place the required size, in bytes, in the location pointed to by this parameter.</param>
715
715
/// <param name="flags">A set of flags that modify the behavior of this function. No flags are defined for this function.</param>
716
716
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
@@ -757,7 +757,7 @@ public static extern unsafe NTSTATUS BCryptGenRandom(
757
757
/// <param name="algorithmHandle">A handle that represents the algorithm provider to close. This handle is obtained by calling the BCryptOpenAlgorithmProvider function.</param>
758
758
/// <param name="flags">A set of flags that modify the behavior of this function. No flags are defined for this function.</param>
759
759
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
/// <param name="hHash">The handle of the hash or MAC object to destroy. This handle is obtained by using the <see cref="BCryptCreateHash(SafeAlgorithmHandle, out SafeHashHandle, byte*, int, byte*, int, BCryptCreateHashFlags)"/> function.</param>
769
769
/// <returns>Returns a status code that indicates the success or failure of the function.</returns>
0 commit comments