If a hash function is not an one-way function, it cannot be collision-resistant.
And the security in AES assumes that it is an one-way function. Otherwise, anyone could decrypt reversing the function.
AES does not need to be a one way function. It’s trivial to compute the preimage of a ciphertext. Just choose any key and decrypt it.
AES does not need to be a one way function. It’s trivial to compute the preimage of a ciphertext. Just choose any key and decrypt it.