Advanced Topics in Lattice-based Cryptography