Programmable Accelerators For Lattice-Based Cryptography