crypto: arm64/sha - fix function types
authorSami Tolvanen <samitolvanen@google.com>
Wed, 27 Nov 2019 23:55:03 +0000 (15:55 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:36:55 +0000 (16:36 +0800)
commit6320a15e98301b67ff9ba8512e1e3a4033007851
treed2b2ba72d48d3ad3db3062a05a4713c0c8180e1f
parent11548f5a5747813ff84bed6f2ea01100053b0d8d
crypto: arm64/sha - fix function types

Instead of casting pointers to callback functions, add C wrappers
to avoid type mismatch failures with Control-Flow Integrity (CFI)
checking.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/sha1-ce-glue.c
arch/arm64/crypto/sha2-ce-glue.c
arch/arm64/crypto/sha256-glue.c
arch/arm64/crypto/sha512-ce-glue.c
arch/arm64/crypto/sha512-glue.c