Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ChallengeSha256 != null ? ChallengeSha256.GetHashCode() : 0) * 397) ^
                (ApplicationSha256 != null ? ApplicationSha256.GetHashCode() : 0));
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 0;
         hashCode = (hashCode * 397) ^ (ChallengeSha256 != null ? ChallengeSha256.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApplicationSha256 != null ? ApplicationSha256.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (KeyHandle != null ? KeyHandle.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
 protected bool Equals(KeySignRequest other)
 {
     return(ChallengeSha256.SequenceEqual(other.ChallengeSha256) &&
            ApplicationSha256.SequenceEqual(other.ApplicationSha256) && KeyHandle.SequenceEqual(other.KeyHandle));
 }
Ejemplo n.º 4
0
 protected bool Equals(KeyRegisterRequest other)
 {
     return(ChallengeSha256.SequenceEqual(other.ChallengeSha256) &&
            ApplicationSha256.SequenceEqual(other.ApplicationSha256));
 }