According to this answer, the gas cost of keccak256
is:
30 gas + 6 gas for each word (rounded up) for input data to a SHA3 Keccak-256 operation
I'm assuming that the size of a word is 256 bits and the size of a character is 8 bits.
Hence the gas cost keccak256("abc")
or any other string of up to 32 characters is 36 gas units.
Is my assumption correct?
If yes, is my conclusion correct?
Thank you!