コード例 #1
0
 public byte[] GetSegmentId(int segmentIndex)
 {
     return(PccrcUtility.GetHoHoDkBytes(
                segments[segmentIndex].SegmentSecret,
                segments[segmentIndex].SegmentHashOfData,
                dwHashAlgo));
 }
コード例 #2
0
 public byte[] GetSegmentId(int chunkIndex, int segmentIndex)
 {
     return(PccrcUtility.GetHoHoDkBytes(
                chunks[chunkIndex].chunkData[segmentIndex].SegmentSecret,
                chunks[chunkIndex].chunkData[segmentIndex].SegmentHashOfData,
                dwHashAlgo));
 }
コード例 #3
0
 /// <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)));
 }