Beryl::Encoding::DistinguishedEncodingRules::Reader
Reads the elements of one input, or of the contents of one constructed element, front to back.
Constructors
Instance methods
Checks element (already read), and everything inside it, for
contents its universal type allows: a BOOLEAN of 0x00 or 0xFF, a
minimal INTEGER or ENUMERATED, a valid BIT STRING, an empty NULL, a
well-formed OBJECT IDENTIFIER, a UTCTime or GeneralizedTime in its
DER form, SEQUENCE and SET constructed and every other universal
type primitive. Tags of the other classes are left uninterpreted.
For values Beryl keeps without reading, such as the parameters of
a key algorithm it does not use. Raises MalformedEncoding.
Yields a reader over the contents of element (already read), one level deeper, and requires it to be read to the end.
Yields a reader over bytes that sit inside an element read earlier (the contents of an OCTET STRING or BIT STRING that hold DER of their own), one level deeper.
Reads a BIT STRING that must hold whole bytes, such as a public key or a signature.
Reads a constructed element with tag and yields a reader over its contents, which must be read to the end. Returns the block's value.
Reads an INTEGER and returns its two's-complement contents, checked to be minimal.
Reads the next element when its tag is tag; otherwise reads
nothing and returns nil.
Reads a UTCTime or a GeneralizedTime in the forms RFC 5280 ยง4.1.2.5 allows, and returns it in UTC.