public override bool Equals(object?obj)
 {
     return(obj is SnapshotReference other &&
            Salt.SequenceEqual(other.Salt) &&
            Iterations == other.Iterations &&
            ContentUris.SequenceEqual(other.ContentUris));
 }
Beispiel #2
0
 public bool Equals(SecuredPassword comparison)
 {
     if (Hash.SequenceEqual(comparison.Hash) && Salt.SequenceEqual(comparison.Salt))
     {
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 protected bool Equals(CiphertextDto other)
 {
     return(Id.Equals(other.Id) &&
            Ciphertext.SequenceEqual(other.Ciphertext) &&
            InitializationVector.SequenceEqual(other.InitializationVector) &&
            Salt.SequenceEqual(other.Salt) &&
            Deleted.Equals(other.Deleted));
 }
Beispiel #4
0
 protected bool Equals(HashedPassword other)
 {
     if (ReferenceEquals(null, this))
     {
         return(ReferenceEquals(null, other));
     }
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(Hash.SequenceEqual(other.Hash) &&
            Salt.SequenceEqual(other.Salt) &&
            Iterations == other.Iterations &&
            Equals(Prf, other.Prf));
 }
        public bool Equals(HashedPassword other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Hash?.SequenceEqual(other.Hash) ?? false) &&
                   (Salt?.SequenceEqual(other.Salt) ?? false) &&
                   IterationCount == other.IterationCount);
        }