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)); }
protected bool Equals(KeyRegisterResponse other) { return(UserPublicKey.SequenceEqual(other.UserPublicKey) && KeyHandle.SequenceEqual(other.KeyHandle) && Equals(AttestationCertificate, other.AttestationCertificate) && Signature.SequenceEqual(other.Signature)); }
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); }