> yes, it makes sense to know what algorithm the key is. > > but hsm_key_info_t contains this, no? would it make sense to have such a struct in hsm_key_t ? Yes, it could be merged into hsm_key_t. hsm_get_key_info() would not be needed and then some minor adjustments in hsmutil.c. // Rickard