Neither. I'm sorry, I see how it's confusing. It means that if the enemy has 10d8 HD you take 10 damage.
I'll change the wording, thank you.