crypto: x86/sha - Eliminate casts on asm implementations
In order to avoid CFI function prototype mismatches, this removes the casts on assembly implementations of sha1/256/512 accelerators. The safety checks from BUILD_BUG_ON() remain. Additionally, this renames various arguments for clarity, as suggested by Eric Biggers. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -347,8 +347,10 @@ a = TMP_
|
||||
.endm
|
||||
|
||||
########################################################################
|
||||
## void sha256_transform_ssse3(void *input_data, UINT32 digest[8], UINT64 num_blks)
|
||||
## arg 1 : pointer to digest
|
||||
## void sha256_transform_ssse3(struct sha256_state *state, const u8 *data,
|
||||
## int blocks);
|
||||
## arg 1 : pointer to state
|
||||
## (struct sha256_state is assumed to begin with u32 state[8])
|
||||
## arg 2 : pointer to input data
|
||||
## arg 3 : Num blocks
|
||||
########################################################################
|
||||
|
Reference in New Issue
Block a user