projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
131e064
)
Remove yet another redundant memcpy. Not at least performance critical,
author
Andy Polyakov
<appro@openssl.org>
Sun, 26 Dec 2004 13:05:40 +0000
(13:05 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 26 Dec 2004 13:05:40 +0000
(13:05 +0000)
essentially cosmetic modification...
crypto/aes/aes_cbc.c
patch
|
blob
|
history
diff --git
a/crypto/aes/aes_cbc.c
b/crypto/aes/aes_cbc.c
index e43135e8a022440dd10d58bae06147f40992f515..41d538f2b52780ce854db2dc0adff8fddf7f8ed1 100644
(file)
--- a/
crypto/aes/aes_cbc.c
+++ b/
crypto/aes/aes_cbc.c
@@
-82,11
+82,10
@@
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
}
if (len) {
for(n=0; n < len; ++n)
-
tmp
[n] = in[n] ^ iv[n];
+
out
[n] = in[n] ^ iv[n];
for(n=len; n < AES_BLOCK_SIZE; ++n)
- tmp[n] = iv[n];
- AES_encrypt(tmp, tmp, key);
- memcpy(out, tmp, AES_BLOCK_SIZE);
+ out[n] = iv[n];
+ AES_encrypt(out, out, key);
iv = out;
}
memcpy(ivec,iv,AES_BLOCK_SIZE);