diff options
author | Nicolas Pitre | 2005-11-13 10:47:20 +1100 |
---|---|---|
committer | David S. Miller | 2006-01-09 14:15:41 -0800 |
commit | cfa8d17cc836905ad174fd924701b352585d62f1 (patch) | |
tree | 6c966440661a678aea2082cf72c1bee0886a0a57 /kernel | |
parent | c8a19c91b5b488fed8cce04200a84c6a35c0bf0c (diff) |
[CRYPTO] sha1: Avoid useless memcpy()
The current code unconditionally copy the first block for every call to
sha1_update(). This can be avoided if there is no pending partial block.
This is always the case on the first call to sha1_update() (if the length
is >= 64 of course.
Furthermore, temp does need to be called if sha_transform is never invoked.
Also consolidate the sha_transform calls into one to reduce code size.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions