Design and Cryptanalysis of Symmetric Key Primitives