Skip to content

Commit 1476db2

Browse files
Dave Watsonherbertx
authored andcommitted
crypto: aesni - Move HashKey computation from stack to gcm_context
HashKey computation only needs to happen once per scatter/gather operation, save it between calls in gcm_context struct instead of on the stack. Since the asm no longer stores anything on the stack, we can use %rsp directly, and clean up the frame save/restore macros a bit. Hashkeys actually only need to be calculated once per key and could be moved to when set_key is called, however, the current glue code falls back to generic aes code if fpu is disabled. Signed-off-by: Dave Watson <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e2e34b0 commit 1476db2

File tree

1 file changed

+106
-99
lines changed

1 file changed

+106
-99
lines changed

0 commit comments

Comments
 (0)