Addet ECC functions on elliptic curve secp256r1.

Rebase done, see pull request #624
Hmm odd. Did you make ecc_compare static? As you don't have the macro you don't need to export that function anymore.