Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (!(obj is DeviceRegistration))
            {
                return(false);
            }

            DeviceRegistration other = (DeviceRegistration)obj;

            return(KeyHandle.SequenceEqual(other.KeyHandle) &&
                   PublicKey.SequenceEqual(other.PublicKey) &&
                   AttestationCert.SequenceEqual(other.AttestationCert) &&
                   (IsCompromised == other.IsCompromised));
        }
Ejemplo n.º 2
0
 protected bool Equals(KeyRegisterResponse other)
 {
     return(UserPublicKey.SequenceEqual(other.UserPublicKey) && KeyHandle.SequenceEqual(other.KeyHandle) &&
            Equals(AttestationCertificate, other.AttestationCertificate) &&
            Signature.SequenceEqual(other.Signature));
 }
Ejemplo n.º 3
0
 protected bool Equals(SecurityKeyData other)
 {
     return(EnrollmentTime == other.EnrollmentTime && ContainSameTransports(Transports, other.Transports) &&
            KeyHandle.SequenceEqual(other.KeyHandle) && PublicKey.SequenceEqual(other.PublicKey) &&
            Equals(AttestationCertificate, other.AttestationCertificate) && Counter == other.Counter);
 }