crypto: hash: in_buf should be constant

Hashing takes an input buffer, and writes the result in a separate
output buffer. Therefore, the input can be marked as constant, so that
constants can be supplied directly to the hashing context without any
intermediate copy, and without having to perform a type-unsafe cast
from (const uint8_t *) to (uint8_t *)

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
3 files changed