---
title: bitStringMatch
description: Compares an assertion of Bit String syntax to a value whose syntax is the ASN.1 BIT STRING type.
component: pingds
version: 8.1
page_id: pingds:schemaref:mr-bitStringMatch
canonical_url: https://docs.pingidentity.com/pingds/8.1/schemaref/mr-bitStringMatch.html
---

# bitStringMatch

Compares an assertion of Bit String syntax to a value whose syntax is the ASN.1 BIT STRING type.

If the ASN.1 type does not have a named bit list, the rule evaluates to TRUE if and only if the assertion and value have the same number of bits, and each bit matches. Otherwise, the same rules apply, but trailing zero bits are ignored.

|                    |                                                           |
| ------------------ | --------------------------------------------------------- |
| *OID*              | 2.5.13.16                                                 |
| *Names*            | bitStringMatch                                            |
| *Assertion syntax* | [BitString](s-BitString.html)                             |
| *Origin*           | [RFC 4517](https://datatracker.ietf.org/doc/html/rfc4517) |
