Algorithms up to EC are covered in "Factorization and Primality Testing"
https://www.amazon.com/dp/0387970401?lv=shuf&channelId=500&p...
BTW that book would be cool if all the pseudo-code were converted to python!