Method | Description | |
---|---|---|
GetHashAlgorithm ( dwHashAlgoV2_Values hashAlgo, |
Get the hash algorithm and hmac algorithm for V2.
|
|
GetHashAlgorithm ( dwHashAlgo_Values hashAlgo, |
Get the hash algorithm and hmac algorithm for V1.
|
|
GetHoHoDkBytes ( byte kp, byte hod, dwHashAlgoV2_Values hashAlgo ) : byte[] |
Compute the segment HoD.
|
|
GetHoHoDkBytes ( byte kp, byte hod, dwHashAlgo_Values hashAlgo ) : byte[] |
Compute the segment HoD.
|
|
GetHoHoDkString ( byte kp, byte hod, dwHashAlgo_Values hashAlgo ) : string |
Compute the segment HoD.
|
|
ParseContentInformation ( byte data ) : |
Parse the information of the content
|
|
ParseContentInformation ( byte data, int &index ) : |
Parse the information of the content
|
|
ParseContentInformationV2 ( byte data ) : |
Parse the information of the content
|
|
ParseContentInformationV2 ( byte data, int &index ) : |
Parse the information of the content
|
|
ReadFile ( string filePath ) : byte[] |
Read files from assigned directory.
|
|
ToHexString ( byte data ) : string |
Transfer a byte array to a hex string. Example from a byte array { 0x0a, 0x0b, 0x0c }, the return is a string 0A0B0C.
|
Method | Description | |
---|---|---|
GetBytes ( byte buffer, int &index, int count ) : byte[] |
Get bytes from bytes.
|
|
GetDataSizeByHashAlgo ( dwHashAlgo_Values dwHashAlgo ) : int |
Get data size by hash algorithm.
|
|
GetUInt16 ( byte buffer, int &index ) : ushort |
Parse UInt16 from bytes.
|
|
GetUInt32 ( byte buffer, int &index ) : uint |
Parse UInt32 from bytes
|
|
GetUInt64 ( byte buffer, int &index ) : ulong |
Parse UInt64 from bytes.
|
|
ParseBlocks ( dwHashAlgo_Values dwHashAlgo, uint cSegments, byte data, int &index ) : Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentContentBlocks[] |
Parse the information of the block.
|
|
ParseSements ( dwHashAlgo_Values dwHashAlgo, uint cSegments, byte data, int &index ) : Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentDescription[] |
Parse the information of segment.
|
public static GetHashAlgorithm ( dwHashAlgoV2_Values hashAlgo, |
||
hashAlgo | dwHashAlgoV2_Values | The hash algorithm value |
hashAlgorithm | ||
hmacAlgorithm | ||
return | void |
public static GetHashAlgorithm ( dwHashAlgo_Values hashAlgo, |
||
hashAlgo | dwHashAlgo_Values | The hash algorithm value |
hashAlgorithm | ||
hmacAlgorithm | ||
blockHashSize | int | |
return | void |
public static GetHoHoDkBytes ( byte kp, byte hod, dwHashAlgoV2_Values hashAlgo ) : byte[] | ||
kp | byte | The Kp data |
hod | byte | The segment HoD |
hashAlgo | dwHashAlgoV2_Values | The HoHoDk hash algorithm. |
return | byte[] |
public static GetHoHoDkBytes ( byte kp, byte hod, dwHashAlgo_Values hashAlgo ) : byte[] | ||
kp | byte | The Kp data |
hod | byte | The segment HoD |
hashAlgo | dwHashAlgo_Values | The HoHoDk hash algorithm. |
return | byte[] |
public static GetHoHoDkString ( byte kp, byte hod, dwHashAlgo_Values hashAlgo ) : string | ||
kp | byte | The Kp data |
hod | byte | The segment HoD |
hashAlgo | dwHashAlgo_Values | The HoHoDk hash algorithm. |
return | string |
public static ParseContentInformation ( byte data ) : |
||
data | byte | The byte data in little-endian order. |
return |
public static ParseContentInformation ( byte data, int &index ) : |
||
data | byte | The byte data in little-endian order. |
index | int | The start index. |
return |
public static ParseContentInformationV2 ( byte data ) : |
||
data | byte | The byte data in little-endian order. |
return |
public static ParseContentInformationV2 ( byte data, int &index ) : |
||
data | byte | The byte data in little-endian order. |
index | int | The start index. |
return |
public static ReadFile ( string filePath ) : byte[] | ||
filePath | string | The file path. |
return | byte[] |
public static ToHexString ( byte data ) : string | ||
data | byte | The input byte array |
return | string |