use a struct to fetch in a pbp key (pbp_pubkey_t) instead of manual parsing