Advanced functionalities and post-quantum security through the lens of lattice-based cryptography