Improving post-quantum cryptography through cryptanalysis