Esempio n. 1
0
 public static extern SECURITY_STATUS NCryptCreatePersistedKey(
     SafeProviderHandle hProvider,
     out SafeKeyHandle phKey,
     string pszAlgId,
     string pszKeyName = null,
     LegacyKeySpec dwLegacyKeySpec = LegacyKeySpec.None,
     NCryptCreatePersistedKeyFlags dwFlags = NCryptCreatePersistedKeyFlags.None);
Esempio n. 2
0
 public static extern SECURITY_STATUS NCryptOpenKey(
     SafeProviderHandle hProvider,
     out SafeKeyHandle phKey,
     string pszKeyName,
     LegacyKeySpec dwLegacyKeySpec,
     NCryptOpenKeyFlags dwFlags = NCryptOpenKeyFlags.None);
Esempio n. 3
0
 public static extern SECURITY_STATUS NCryptOpenStorageProvider(
     out SafeProviderHandle phProvider,
     string pszProviderName,
     NCryptOpenStorageProviderFlags dwFlags = NCryptOpenStorageProviderFlags.None);
Esempio n. 4
0
 public static extern unsafe SECURITY_STATUS NCryptImportKey(
     SafeProviderHandle hProvider,
     SafeKeyHandle hImportKey,
     string pszBlobType,
     NCryptBufferDesc* pParameterList,
     out SafeKeyHandle phKey,
     byte* pbData,
     int cbData,
     NCryptExportKeyFlags dwFlags = NCryptExportKeyFlags.None);
Esempio n. 5
0
 public static extern SECURITY_STATUS NCryptIsAlgSupported(
     SafeProviderHandle hProvider,
     string pszAlgId,
     NCryptIsAlgSupportedFlags dwFlags = NCryptIsAlgSupportedFlags.None);
Esempio n. 6
0
 public static extern unsafe SECURITY_STATUS NCryptEnumKeys(
     SafeProviderHandle hProvider,
     string pszScope,
     out NCryptKeyName* ppKeyName,
     ref void* ppEnumState,
     NCryptEnumKeysFlags dwFlags = NCryptEnumKeysFlags.None);
Esempio n. 7
0
 public static extern unsafe SECURITY_STATUS NCryptEnumAlgorithms(
     SafeProviderHandle hProvider,
     AlgorithmOperations dwAlgOperations,
     out int pdwAlgCount,
     out NCryptAlgorithmName* ppAlgList,
     NCryptEnumAlgorithmsFlags dwFlags = NCryptEnumAlgorithmsFlags.None);
Esempio n. 8
0
		public SECURITY_STATUS NCryptOpenStorageProvider(
            out SafeProviderHandle phProvider,
            string pszProviderName,
            NCryptOpenStorageProviderFlags dwFlags = NCryptOpenStorageProviderFlags.None)
			=> NCryptOpenStorageProvider(out phProvider, pszProviderName, dwFlags );