Knocked out some TODOs ...
Precompute d mod (p-1) in decryption.