rearchitect keytrans to isolate OpenPGP packet parsing routines