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);
65 int hr = (int)(ntStatus | (global::Interop.BCrypt.NTSTATUS)16777216u);
66 return hr.ToCryptographicException();
static global::Interop.BCrypt.NTSTATUS BCryptSetProperty(Internal.NativeCrypto.SafeAlgorithmHandle hObject, string pszProperty, string pbInput, int cbInput, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptSetIntPropertyPrivate(SafeBCryptHandle hObject, string pszProperty, ref int pdwInput, int cbInput, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptSetIntPropertyPrivate(Microsoft.Win32.SafeHandles.SafeBCryptHandle hObject, string pszProperty, ref int pdwInput, int cbInput, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptSetIntProperty(Microsoft.Win32.SafeHandles.SafeBCryptHandle hObject, string pszProperty, ref int pdwInput, 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 BCryptOpenAlgorithmProvider(out Internal.NativeCrypto.SafeAlgorithmHandle phAlgorithm, string pszAlgId, string pszImplementation, int dwFlags)
static global::Interop.BCrypt.NTSTATUS BCryptSetProperty(SafeAlgorithmHandle hObject, string pszProperty, string pbInput, int cbInput, int dwFlags)
static Exception CreateCryptographicException(global::Interop.BCrypt.NTSTATUS ntStatus)
static void SetFeedbackSize(this Internal.NativeCrypto.SafeAlgorithmHandle hAlg, int dwFeedbackSize)
static void SetCipherMode(this Internal.NativeCrypto.SafeAlgorithmHandle hAlg, string cipherMode)
static Internal.NativeCrypto.SafeAlgorithmHandle BCryptOpenAlgorithmProvider(string pszAlgId, string pszImplementation, OpenAlgorithmProviderFlags dwFlags)
OpenAlgorithmProviderFlags
@ BCRYPT_ALG_HANDLE_HMAC_FLAG