C# Class Internal.NativeCrypto.CapiHelper.Interop

Show file Open project: dotnet/corefx

Public Methods

Method Description
CryptCreateHash ( System.Security.Cryptography.SafeProvHandle hProv, int algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle &phHash ) : bool
CryptGenKey ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int algId, int dwFlags, SafeKeyHandle &safeKeyHandle ) : bool
CryptGetUserKey ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int dwKeySpec, SafeKeyHandle &safeKeyHandle ) : bool
CryptImportKey ( System.Security.Cryptography.SafeProvHandle hProv, byte pbData, int dwDataLen, SafeKeyHandle hPubKey, int dwFlags, SafeKeyHandle &phKey ) : bool

Private Methods

Method Description
CryptAcquireContext ( System.Security.Cryptography.SafeProvHandle &psafeProvHandle, string pszContainer, string pszProvider, int dwProvType, uint dwFlags ) : bool
CryptDecrypt ( SafeKeyHandle safeKeyHandle, SafeHashHandle safeHashHandle, bool Final, int dwFlags, byte pbData, int &pdwDataLen ) : bool
CryptDestroyHash ( IntPtr hHash ) : bool
CryptDestroyKey ( IntPtr hKey ) : bool
CryptEncrypt ( SafeKeyHandle safeKeyHandle, SafeHashHandle safeHashHandle, bool Final, int dwFlags, byte pbData, int &pdwDataLen, int dwBufLen ) : bool
CryptExportKey ( SafeKeyHandle hKey, SafeKeyHandle hExpKey, int dwBlobType, int dwFlags, [ pbData, int &dwDataLen ) : bool
CryptGetDefaultProvider ( int dwProvType, IntPtr pdwReserved, int dwFlags, StringBuilder pszProvName, int &IntPtrProvName ) : bool
CryptGetHashParam ( SafeHashHandle hHash, CryptHashProperty dwParam, int &pbData, [ pdwDataLen, int dwFlags ) : bool
CryptGetKeyParam ( SafeKeyHandle safeKeyHandle, int dwParam, byte pbData, int &pdwDataLen, int dwFlags ) : bool
CryptGetProvParam ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int dwParam, byte pbData, int &dwDataLen, int dwFlags ) : bool
CryptReleaseContext ( IntPtr safeProvHandle, int dwFlags ) : bool
CryptSetHashParam ( SafeHashHandle hHash, CryptHashProperty dwParam, byte buffer, int dwFlags ) : bool
CryptSetKeyParam ( SafeKeyHandle safeKeyHandle, int dwParam, byte pbData, int dwFlags ) : bool
CryptSetKeyParamInt ( SafeKeyHandle safeKeyHandle, int dwParam, int &pdw, int dwFlags ) : bool
CryptSetProvParam ( System.Security.Cryptography.SafeProvHandle safeProvHandle, CryptGetProvParam dwParam, IntPtr &pbData, int dwFlags ) : bool
CryptSignHash ( SafeHashHandle hHash, KeySpec dwKeySpec, String sDescription, CryptSignAndVerifyHashFlags dwFlags, [ pbSignature, [ pdwSigLen ) : bool
CryptVerifySignature ( SafeHashHandle hHash, byte pbSignature, int dwSigLen, SafeKeyHandle hPubKey, String sDescription, CryptSignAndVerifyHashFlags dwFlags ) : bool
_CryptCreateHash ( System.Security.Cryptography.SafeProvHandle hProv, int algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle &phHash ) : bool
_CryptGenKey ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int Algid, int dwFlags, SafeKeyHandle &safeKeyHandle ) : bool
_CryptGetUserKey ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int dwKeySpec, SafeKeyHandle &safeKeyHandle ) : bool
_CryptImportKey ( System.Security.Cryptography.SafeProvHandle hProv, byte pbData, int dwDataLen, SafeKeyHandle hPubKey, int dwFlags, SafeKeyHandle &phKey ) : bool

Method Details

CryptCreateHash() public static method

public static CryptCreateHash ( System.Security.Cryptography.SafeProvHandle hProv, int algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle &phHash ) : bool
hProv System.Security.Cryptography.SafeProvHandle
algId int
hKey SafeKeyHandle
dwFlags CryptCreateHashFlags
phHash SafeHashHandle
return bool

CryptGenKey() public static method

public static CryptGenKey ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int algId, int dwFlags, SafeKeyHandle &safeKeyHandle ) : bool
safeProvHandle System.Security.Cryptography.SafeProvHandle
algId int
dwFlags int
safeKeyHandle SafeKeyHandle
return bool

CryptGetUserKey() public static method

public static CryptGetUserKey ( System.Security.Cryptography.SafeProvHandle safeProvHandle, int dwKeySpec, SafeKeyHandle &safeKeyHandle ) : bool
safeProvHandle System.Security.Cryptography.SafeProvHandle
dwKeySpec int
safeKeyHandle SafeKeyHandle
return bool

CryptImportKey() public static method

public static CryptImportKey ( System.Security.Cryptography.SafeProvHandle hProv, byte pbData, int dwDataLen, SafeKeyHandle hPubKey, int dwFlags, SafeKeyHandle &phKey ) : bool
hProv System.Security.Cryptography.SafeProvHandle
pbData byte
dwDataLen int
hPubKey SafeKeyHandle
dwFlags int
phKey SafeKeyHandle
return bool