I've been studying message authentication codes and I was wondering why a MAC can only be produced with AES in CBC and CFB mode and why not the other modes such as ECB, OFB and counter.
Why are CBC and CFB suitable modes to produce MACs? Is there a certain trait that makes them special when compared to the other modes?