projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0aa081
)
Fix CTR mode.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 30 Aug 2013 11:43:23 +0000
(13:43 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 30 Aug 2013 11:43:23 +0000
(13:43 +0200)
src/openssl/cipher.c
patch
|
blob
|
history
diff --git
a/src/openssl/cipher.c
b/src/openssl/cipher.c
index
c0307f8
..
5d9bebc
100644
(file)
--- a/
src/openssl/cipher.c
+++ b/
src/openssl/cipher.c
@@
-171,7
+171,7
@@
bool cipher_counter_xor(cipher_t *cipher, const void *indata, size_t inlen, void
break;
}
- *out++ = *in++ ^ cipher->counter->
counter
[cipher->counter->n++];
+ *out++ = *in++ ^ cipher->counter->
block
[cipher->counter->n++];
if(cipher->counter->n >= cipher->cipher->block_size)
cipher->counter->n = 0;