# Which one has better Performance?

Sending secret value in identity-based encryption
Using xor : $K \oplus e(g,h)^{\gamma}$
Using symmetric key: Assuming $Key=e(g,h)^{\gamma}$ and encrypt $K$ using $Key$.
Which one is better in performance?

• Just to be sure: Do you mean "performance" as in "speed", or are you hinting at something else (like "security")? – e-sushi Jun 9 '16 at 14:48
• Good question, I assumed speed in the answer below. – Maarten Bodewes Jun 9 '16 at 17:01
• e-sushi. speed. – myat Jun 23 '16 at 5:36