Major restructuring of the internals of SILC Cipher API
[crypto.git] / lib / silccrypt / none.c
index d35a85e2273578903f9d5fcd92be49590cec0149..1dfe483d3e158d0f21ad5e89f184a2c6397669ae 100644 (file)
@@ -4,7 +4,7 @@
 
   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
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silccrypto.h"
 #include "none.h"
 
 /*
@@ -34,9 +34,14 @@ SILC_CIPHER_API_SET_IV(none)
 
 }
 
-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)