| commit | ebad819d98db3eb28f22ad659e48c21a599e69a0 | [log] [tgz] |
|---|---|---|
| author | Titouan Christophe <titouan.christophe@mind.be> | Thu Aug 07 10:03:34 2025 +0200 |
| committer | Johan Hedberg <johan.hedberg@gmail.com> | Tue Oct 21 22:55:24 2025 +0300 |
| tree | ed5abe9374c7930edf316b3995bca37b761581c5 | |
| parent | c21b6d9e95fae2ac1b20348ad45648a762f02c70 [diff] |
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>