C# 클래스 Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.HashGeneration

Generate the content information data according to the data read from file.
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 메소드들

메소드 설명
ComputeHoHoDk ( byte kp, byte hod ) : byte[]

Compute the segment HoD.

GenerateContentInformation ( byte data ) : Content_Information_Data_Structure

Generate the content information structure use the file data.

GenerateContentInformation ( string filePath ) : Content_Information_Data_Structure

Generate the content information structure use the file data.

HashGeneration ( ) : System

Initializes a new instance of the HashGeneration class.

HashGeneration ( byte secret, dwHashAlgo_Values algo ) : System

Initializes a new instance of the HashGeneration class with server secret and hash algorithm.

HashGeneration ( string secret, dwHashAlgo_Values algo ) : System

Initializes a new instance of the HashGeneration class with server secret and hash algorithm.

비공개 메소드들

메소드 설명
ComputeBlockHash ( byte blockData ) : byte[]

Compute the block data to block hash data.

ComputeHod ( List blockDataList ) : byte[]

Compute the segment HoD.

ComputeKp ( byte hod ) : byte[]

Compute the segment secret.

메소드 상세

ComputeHoHoDk() 공개 메소드

Compute the segment HoD.
public ComputeHoHoDk ( byte kp, byte hod ) : byte[]
kp byte The Kp data
hod byte The segment HoD
리턴 byte[]

GenerateContentInformation() 공개 메소드

Generate the content information structure use the file data.
public GenerateContentInformation ( byte data ) : Content_Information_Data_Structure
data byte The file data.
리턴 Content_Information_Data_Structure

GenerateContentInformation() 공개 메소드

Generate the content information structure use the file data.
public GenerateContentInformation ( string filePath ) : Content_Information_Data_Structure
filePath string The file path.
리턴 Content_Information_Data_Structure

HashGeneration() 공개 메소드

Initializes a new instance of the HashGeneration class.
public HashGeneration ( ) : System
리턴 System

HashGeneration() 공개 메소드

Initializes a new instance of the HashGeneration class with server secret and hash algorithm.
public HashGeneration ( byte secret, dwHashAlgo_Values algo ) : System
secret byte The binary array of the server secret.
algo dwHashAlgo_Values The hash algorithm.
리턴 System

HashGeneration() 공개 메소드

Initializes a new instance of the HashGeneration class with server secret and hash algorithm.
public HashGeneration ( string secret, dwHashAlgo_Values algo ) : System
secret string The unicode string of the server secret.
algo dwHashAlgo_Values The hash algorithm.
리턴 System