Who gave the name Korea to Korea?

Korea is actually derived from a Korean word. 고려 (Goryeo) when it was phonetically translated, it turned into Korea.

-edit-

Goryeo was the first unified Korean kingdom. It emerged after the Northern and Southern Kingdoms period. Ko-rea is a rough romanization of Go-ryeo (also known as Ko-ryo)