hsa: use crypto_engine_type_t for TLS