updates. New data types.
[silc.git] / lib / silccrypt / blowfish.h
index 05034a6620be3fc02281d7e742fffac717371c81..3bc8a18e820e2870627fdf196a5be126e3b772b8 100644 (file)
@@ -20,6 +20,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.2  2001/04/03 19:54:10  priikone
+ *     updates. New data types.
+ *
  * Revision 1.1.1.1  2000/06/27 11:36:54  priikone
  *     Importet from internal CVS/Added Log headers.
  *
@@ -74,13 +77,13 @@ SILC_CIPHER_API_CONTEXT_LEN(blowfish)
 
 SILC_CIPHER_API_ENCRYPT_CBC(blowfish)
 {
-  unsigned int *in, *out, *tiv;
-  unsigned int tmp[4];
+  uint32 *in, *out, *tiv;
+  uint32 tmp[4];
   int i;
 
-  in = (unsigned int *)src;
-  out = (unsigned int *)dst;
-  tiv = (unsigned int *)iv;
+  in = (uint32 *)src;
+  out = (uint32 *)dst;
+  tiv = (uint32 *)iv;
 
   tmp[0] = in[0] ^ tiv[0];
   tmp[1] = in[1] ^ tiv[1];  
@@ -107,12 +110,12 @@ SILC_CIPHER_API_ENCRYPT_CBC(blowfish)
 
 SILC_CIPHER_API_DECRYPT_CBC(blowfish)
 {
-  unsigned int *in, *out, *tiv;
+  uint32 *in, *out, *tiv;
   int i;
 
-  in = (unsigned int *)src;
-  out = (unsigned int *)dst;
-  tiv = (unsigned int *)iv;
+  in = (uint32 *)src;
+  out = (uint32 *)dst;
+  tiv = (uint32 *)iv;
 
   blowfish_decrypt((BlowfishContext *)context, in, out, 16);
   out[0] ^= tiv[0];