aboutsummaryrefslogtreecommitdiff
path: root/lib/string.c
diff options
context:
space:
mode:
authorDave Watson <[email protected]>2018-02-14 09:40:10 -0800
committerHerbert Xu <[email protected]>2018-02-22 22:16:49 +0800
commit1476db2d129d5e4fc59e93a7abd22edcb26b52f5 (patch)
tree018bc9513af4cb8d5bce210ca869c2a7c8d23a02 /lib/string.c
parente2e34b0856463727292498d756308cba957fe477 (diff)
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]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions