- Don't memcpy() in place with void_encrypt

--HG--
extra : convert_revision : d123343d78df1b5998d8dd2674fd83fd682ce0c0
This commit is contained in:
Matt Johnston 2009-06-09 13:18:52 +00:00
parent 4be3826dd5
commit 08893f03a5

View File

@ -31,7 +31,9 @@
static int void_cipher(const unsigned char* in, unsigned char* out,
unsigned long len, void *cipher_state) {
memcpy(out, in, len);
if (in != out) {
memmove(out, in, len);
}
return CRYPT_OK;
}