7internal static class AesBCryptModes
43 safeAlgorithmHandle.SetCipherMode(cipherMode);
44 if (feedback > 0 && feedback != 1)
48 safeAlgorithmHandle.SetFeedbackSize(feedback);
55 return safeAlgorithmHandle;
static Lazy< SafeAlgorithmHandle > OpenAesAlgorithm(string cipherMode, int feedback=0)
static readonly Lazy< SafeAlgorithmHandle > s_hAlgEcb
static readonly Lazy< SafeAlgorithmHandle > s_hAlgCbc
static Internal.NativeCrypto.SafeAlgorithmHandle GetSharedHandle(CipherMode cipherMode, int feedback)
static readonly Lazy< SafeAlgorithmHandle > s_hAlgCfb8
static readonly Lazy< SafeAlgorithmHandle > s_hAlgCfb128
static Lazy< Internal.NativeCrypto.SafeAlgorithmHandle > OpenAesAlgorithm(string cipherMode, int feedback=0)
static SafeAlgorithmHandle BCryptOpenAlgorithmProvider(string pszAlgId, string pszImplementation, OpenAlgorithmProviderFlags dwFlags)
OpenAlgorithmProviderFlags
static string Cryptography_FeedbackSizeNotSupported