コード例 #1
0
 /// <summary>
 /// Verify the ClearID.ClearHash against chunk data.
 /// The data is assumed to be decrypted, otherwise the verification will fail.
 /// </summary>
 public bool Verify(ChunkHash ch)
 {
     if (ch.Equals(ChunkHash) == false)
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
ファイル: Chunk.cs プロジェクト: hultqvist/Whisper
 /// <summary>
 /// Verify the ClearID.ClearHash against chunk data.
 /// The data is assumed to be decrypted, otherwise the verification will fail.
 /// </summary>
 public bool Verify(ChunkHash ch)
 {
     if (ch.Equals (ChunkHash) == false)
         return false;
     return true;
 }