Trivial ASN.1 decoding functions.