C# Class Internal.Cryptography.OpenSslAsymmetricAlgorithmCore

Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode 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

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

Method Details

BitsToBytes() public static méthode

public static BitsToBytes ( int bitLength ) : int
bitLength int
Résultat int

ConvertDerToIeee1363() public static méthode

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
Résultat byte[]

ConvertIeee1363ToDer() public static méthode

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

HashData() public static méthode

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

HashData() public static méthode

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