Function der_parser::parse_der_bool [] [src]

pub fn parse_der_bool(i: &[u8]) -> IResult<&[u8], DerObject>

Read a boolean value

The encoding of a boolean value shall be primitive. The contents octets shall consist of a single octet.

If the boolean value is FALSE, the octet shall be zero. If the boolean value is TRUE, the octet shall be one byte, and have all bits set to one (0xff).