convert CKA_KEY_TYPE to and from LDAP representation