Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2007 Pekka Riikonen
+ Copyright (C) 1997 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
*/
-#include "silc.h"
+#include "silccrypto.h"
#include "none.h"
/*
}
-SILC_CIPHER_API_CONTEXT_LEN(none)
+SILC_CIPHER_API_INIT(none)
{
- return 1;
+ return (void *)0x01;
+}
+
+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;
}