Efficient implementation of elliptic curves on sensor nodes