PK: rename members for consistency CIPHER, MD

Also add pk_get_name() to remove a direct access to pk_type
4 files changed