projects
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added properly working CBC mode implementation to AES.
[crypto.git]
/
lib
/
silccrypt
/
none.c
diff --git
a/lib/silccrypt/none.c
b/lib/silccrypt/none.c
index 1dfe483d3e158d0f21ad5e89f184a2c6397669ae..8d475fa0520ebcf2b97a5b24d1ea8e82325ec3cc 100644
(file)
--- a/
lib/silccrypt/none.c
+++ b/
lib/silccrypt/none.c
@@
-46,12
+46,14
@@
SILC_CIPHER_API_UNINIT(none)
SILC_CIPHER_API_ENCRYPT(none)
{
- memmove(dst, src, len);
+ if (src != dst)
+ memcpy(dst, src, len);
return TRUE;
}
SILC_CIPHER_API_DECRYPT(none)
{
- memmove(dst, src, len);
+ if (src != dst)
+ memcpy(dst, src, len);
return TRUE;
}