Home GnuPG

cipher/sha256: fix 'accessing 32 bytes in a region of size 4' warnings

Description

cipher/sha256: fix 'accessing 32 bytes in a region of size 4' warnings

* cipher/sha256.c (SHA256_CONTEXT): Replace h0-h7 with h[8].
(do_sha256_transform_amd64_ssse3, do_sha256_transform_amd64_avx)
(do_sha256_transform_amd64_avx2, do_sha256_transform_intel_shaext)
(do_sha256_transform_armv8_ce, do_sha256_transform_ppc8)
(do_sha256_transform_ppc9, do_sha256_transform_s390x)
(do_sha256_final_s390x, sha256_init, sha224_init)
(do_transform_generic, sha256_final): Convert use of h0-h7 to h[0]-h[7].

GCC-11 gives following warning on sha256.c:
warning: 'func' accessing 32 bytes in a region of size 4

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Oct 8 2021, 6:39 PM
Parents
rC082ea0efa9b1: cipher: Add sign+hash, verify+hash, and random-override API.
Branches
Unknown
Tags
Unknown