I'm very new to cryptography and am having some issues with the following question
A hash function H encrypts an n-block message m = (m1, m2 ... mn) in CBC mode:
- Block size is 128 bits
- Hash result is the last ciphertext
- IV is arbitrary 1 block long
- Encryption key is arbitrary number -> 128, 192 or 256 bits
- IV and Key are public
I need to find out if this function is collision resistant
- If it is I need to provide proof
- If it's not I need to provide a pair of collisions m and m' s.t -> H(m) = H(m')
Also discussing cases where block size varies over n=1,2,3
Any help would be greatly appreciated, thanks