summaryrefslogtreecommitdiffstats
path: root/Documentation/README.DAC960
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2005-11-13 00:47:20 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 23:15:41 +0100
commitcfa8d17cc836905ad174fd924701b352585d62f1 (patch)
tree6c966440661a678aea2082cf72c1bee0886a0a57 /Documentation/README.DAC960
parent[CRYPTO] Allow AES C/ASM implementations to coexist (diff)
downloadlinux-cfa8d17cc836905ad174fd924701b352585d62f1.tar.xz
linux-cfa8d17cc836905ad174fd924701b352585d62f1.zip
[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 'Documentation/README.DAC960')
0 files changed, 0 insertions, 0 deletions