key generation: return SW_FUNC_NOT_SUPPORTED if the keytype is not supported