Heat oil. Add the garlic, the chilis, and the ginger. Saute for thirty seconds. Then add the tomatoes, and salt. Adjust salt to taste. Cover and cook for 7 or 8 minutes or until the tomatoes have softened.
After the tomato mixture has cooled, blend until a paste forms.
Tadka
Heat oil. Add mustard seed and cook until they crackle. Add the chopped garlic, dried chilis, curry leaves, and chili powder.
Add the tomato mixture. to the tadka. Cool and serve.