Major restructuring of the internals of SILC Cipher API
[crypto.git] / lib / silccrypt / none.c
index 3c45849a9eaa3609961e5b50b4771c215f7ca837..1dfe483d3e158d0f21ad5e89f184a2c6397669ae 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2000 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
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silccrypto.h"
 #include "none.h"
 
 /*
@@ -29,19 +29,29 @@ SILC_CIPHER_API_SET_KEY(none)
   return TRUE;
 }
 
-SILC_CIPHER_API_CONTEXT_LEN(none)
+SILC_CIPHER_API_SET_IV(none)
 {
-  return 1;
+
+}
+
+SILC_CIPHER_API_INIT(none)
+{
+  return (void *)0x01;
+}
+
+SILC_CIPHER_API_UNINIT(none)
+{
+
 }
 
-SILC_CIPHER_API_ENCRYPT_CBC(none)
+SILC_CIPHER_API_ENCRYPT(none)
 {
-  memcpy(dst, src, len);
+  memmove(dst, src, len);
   return TRUE;
 }
 
-SILC_CIPHER_API_DECRYPT_CBC(none)
+SILC_CIPHER_API_DECRYPT(none)
 {
-  memcpy(dst, src, len);
+  memmove(dst, src, len);
   return TRUE;
 }