C# Class Internal.Cryptography.OpenSslAsymmetricAlgorithmCore

Show file Open project: dotnet/corefx

Public Methods

Method Description
BitsToBytes ( int bitLength ) : int
ConvertDerToIeee1363 ( byte input, int inputOffset, int inputCount, int fieldSizeBits ) : byte[]

Convert Der format of (r, s) to Ieee1363 format

ConvertIeee1363ToDer ( byte input ) : byte[]

Convert Ieee1363 format of (r, s) to Der format

HashData ( Stream data, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
HashData ( byte data, int offset, int count, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]

Private Methods

Method Description
CopySignatureField ( byte signatureField, byte response, int offset, int fieldLength ) : void
GetHashAlgorithm ( Internal.Cryptography.HashAlgorithmName hashAlgorithmName ) : HashAlgorithm

Method Details

BitsToBytes() public static method

public static BitsToBytes ( int bitLength ) : int
bitLength int
return int

ConvertDerToIeee1363() public static method

Convert Der format of (r, s) to Ieee1363 format
public static ConvertDerToIeee1363 ( byte input, int inputOffset, int inputCount, int fieldSizeBits ) : byte[]
input byte
inputOffset int
inputCount int
fieldSizeBits int
return byte[]

ConvertIeee1363ToDer() public static method

Convert Ieee1363 format of (r, s) to Der format
public static ConvertIeee1363ToDer ( byte input ) : byte[]
input byte
return byte[]

HashData() public static method

public static HashData ( Stream data, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
data Stream
hashAlgorithm Internal.Cryptography.HashAlgorithmName
return byte[]

HashData() public static method

public static HashData ( byte data, int offset, int count, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm Internal.Cryptography.HashAlgorithmName
return byte[]