sha2: Fix -Wcast-qual warnings by adding const to some casts
Merge topic 'fix-sha2-cast-constness' into next

d4d2d72f sha2: Fix -Wcast-qual warnings by adding const to some casts