The trick to ASN.1 is to serialize/unserialize it backwards.

#1 NSA, I get it now!