Free energy minimisation algorithmfor decoding and cryptanalysis | Synapse