C# Class Internal.NativeCrypto.Cng

Show file Open project: dotnet/corefx

Public Methods

Method Description
BCryptDecrypt ( this hKey, byte input, int inputOffset, int inputCount, byte iv, byte output, int outputOffset, int outputCount ) : int
BCryptEncrypt ( this hKey, byte input, int inputOffset, int inputCount, byte iv, byte output, int outputOffset, int outputCount ) : int
BCryptImportKey ( this hAlg, byte key ) : SafeKeyHandle
BCryptOpenAlgorithmProvider ( String pszAlgId, String pszImplementation, OpenAlgorithmProviderFlags dwFlags ) : SafeAlgorithmHandle
CryptFormatObject ( String oidValue, byte rawData, bool multiLine ) : String
SetCipherMode ( this hAlg, string cipherMode ) : void
SetEffectiveKeyLength ( this hAlg, int effectiveKeyLength ) : void

Private Methods

Method Description
CreateCryptographicException ( NTSTATUS ntStatus ) : Exception

Method Details

BCryptDecrypt() public static method

public static BCryptDecrypt ( this hKey, byte input, int inputOffset, int inputCount, byte iv, byte output, int outputOffset, int outputCount ) : int
hKey this
input byte
inputOffset int
inputCount int
iv byte
output byte
outputOffset int
outputCount int
return int

BCryptEncrypt() public static method

public static BCryptEncrypt ( this hKey, byte input, int inputOffset, int inputCount, byte iv, byte output, int outputOffset, int outputCount ) : int
hKey this
input byte
inputOffset int
inputCount int
iv byte
output byte
outputOffset int
outputCount int
return int

BCryptImportKey() public static method

public static BCryptImportKey ( this hAlg, byte key ) : SafeKeyHandle
hAlg this
key byte
return SafeKeyHandle

BCryptOpenAlgorithmProvider() public static method

public static BCryptOpenAlgorithmProvider ( String pszAlgId, String pszImplementation, OpenAlgorithmProviderFlags dwFlags ) : SafeAlgorithmHandle
pszAlgId String
pszImplementation String
dwFlags OpenAlgorithmProviderFlags
return SafeAlgorithmHandle

CryptFormatObject() public static method

public static CryptFormatObject ( String oidValue, byte rawData, bool multiLine ) : String
oidValue String
rawData byte
multiLine bool
return String

SetCipherMode() public static method

public static SetCipherMode ( this hAlg, string cipherMode ) : void
hAlg this
cipherMode string
return void

SetEffectiveKeyLength() public static method

public static SetEffectiveKeyLength ( this hAlg, int effectiveKeyLength ) : void
hAlg this
effectiveKeyLength int
return void