Optimized version of the reference implementation of Ed25519