]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
aesni: Remove misleading array bounds for aesni_decryt_ecb.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 7 Dec 2022 20:32:19 +0000 (12:32 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 3 May 2023 00:22:55 +0000 (17:22 -0700)
commit22cb9d3f17c4706573ba847599faaa66b2a5f247
treeb97244d9a39c71d998e5f478346a735d5ad0a2b4
parentda0afdcc61e2e020db40fcfc103c3f633fe7d393
aesni: Remove misleading array bounds for aesni_decryt_ecb.

All the other functions used pointers for from/to instead of
fixed-size array parameters.  More importantly, this function can
accept pointers to buffers of multiple blocks, not just a single
block.

Reported by: GCC -Warray-parameter
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D37547

(cherry picked from commit d256a06fe8bda8120a3e22434c53fdef076001d3)
sys/crypto/aesni/aesni_wrap.c