8internal static class Cng
25 [DllImport(
"BCrypt.dll",
CharSet =
CharSet.Unicode, EntryPoint =
"BCryptSetProperty")]
56 global::Interop.BCrypt.NTSTATUS nTSTATUS =
Interop.
BCryptSetProperty(hAlg,
"ChainingMode", cipherMode, (cipherMode.Length + 1) * 2, 0);
74 int hr = (int)(ntStatus | (global::Interop.BCrypt.NTSTATUS)16777216u);
75 return hr.ToCryptographicException();
static global::Interop.BCrypt.NTSTATUS BCryptSetIntPropertyPrivate(SafeBCryptHandle hObject, string pszProperty, ref int pdwInput, int cbInput, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptOpenAlgorithmProvider(out SafeAlgorithmHandle phAlgorithm, string pszAlgId, string pszImplementation, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptSetIntProperty(SafeBCryptHandle hObject, string pszProperty, ref int pdwInput, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptSetProperty(SafeAlgorithmHandle hObject, string pszProperty, string pbInput, int cbInput, int dwFlags)
static SafeAlgorithmHandle BCryptOpenAlgorithmProvider(string pszAlgId, string pszImplementation, OpenAlgorithmProviderFlags dwFlags)
static void SetFeedbackSize(this SafeAlgorithmHandle hAlg, int dwFeedbackSize)
static void SetEffectiveKeyLength(this SafeAlgorithmHandle hAlg, int effectiveKeyLength)
static Exception CreateCryptographicException(global::Interop.BCrypt.NTSTATUS ntStatus)
static void SetCipherMode(this SafeAlgorithmHandle hAlg, string cipherMode)
OpenAlgorithmProviderFlags
@ BCRYPT_ALG_HANDLE_HMAC_FLAG