public byte[] GetSegmentId(int segmentIndex)
 {
     return(PccrcUtility.GetHoHoDkBytes(
                segments[segmentIndex].SegmentSecret,
                segments[segmentIndex].SegmentHashOfData,
                dwHashAlgo));
 }
 public byte[] GetSegmentId(int chunkIndex, int segmentIndex)
 {
     return(PccrcUtility.GetHoHoDkBytes(
                chunks[chunkIndex].chunkData[segmentIndex].SegmentSecret,
                chunks[chunkIndex].chunkData[segmentIndex].SegmentHashOfData,
                dwHashAlgo));
 }
 /// <summary>
 /// Generate the content information structure use the file data.
 /// </summary>
 /// <param name="filePath">The file path.</param>
 /// <returns>The content information structure</returns>
 public Content_Information_Data_Structure GenerateContentInformation(string filePath)
 {
     return(this.GenerateContentInformation(PccrcUtility.ReadFile(filePath)));
 }