hexadecimal string of ASN.1 BitString value with unused bit
binary string
This function converts from hexadecimal string of ASN.1 BitString
value with unused bit to its integer value.
When an improper hexadecimal string of BitString value
is applied, this returns null.
bitstrtobinstr("05a0") -> "101"
bitstrtobinstr("0520") -> "001"
bitstrtobinstr("07a080") -> "101000001"
bitstrtobinstr(502) -> null // non ASN.1 BitString value
bitstrtobinstr("ff00") -> null // for improper BitString value
convert from hexadecimal string of ASN.1 BitString value with unused bit to binary string