Text this: Advanced linear cryptanalysis of block and stream ciphers