Gadgets and Gaussians in Lattice-Based Cryptography