There are plenty of questions about the difference between AES encryption and hash functions. I read some of them and the general answer is that
- AES is reversible as long as the key is exposed.
- AES has fixed input size and hash does not.
- There is a method to make a hash function based on the block cipher.
I am curious whether there is a difference between AES encryption and hash function with the strong assumptions as below:
A. The key of the AES is never exposed. (Without knowing the key, I believe there is no possibility of decryption ansand hence one-way function as a hash) B
B. For some applicationapplications, the input size is always fixed.
In this case, if someone use theuses AES encryption as the purpose of hash, is theredo any possible problems exist?
Thank you for your answering.