http://cockrum.net/Implementation_of_ECC_on_an_8-bit_microcontroller.pdf