Added SILC Server library.
[silc.git] / lib / silccrypt / aes.c
index 840dfdde8f26986434b1b8ff637a81192f558d75..b8308fd60b304eb1b7b54329819fa9ca55ac38d4 100644 (file)
@@ -39,7 +39,7 @@ Mean:          500 cycles =    51.2 mbits/sec
 
 */
 
-#include "silcincludes.h"
+#include "silc.h"
 #include "rijndael_internal.h"
 #include "aes.h"
 
@@ -51,7 +51,7 @@ Mean:          500 cycles =    51.2 mbits/sec
 
 SILC_CIPHER_API_SET_KEY(aes)
 {
-  uint32 k[8];
+  SilcUInt32 k[8];
 
   SILC_GET_WORD_KEY(key, k, keylen);
   rijndael_set_key((RijndaelContext *)context, k, keylen);
@@ -64,14 +64,6 @@ SILC_CIPHER_API_SET_KEY(aes)
 
 SILC_CIPHER_API_SET_KEY_WITH_STRING(aes)
 {
-  /*  unsigned char key[md5_hash_len];
-  SilcMarsContext *ctx = (SilcMarsContext *)context;
-
-  make_md5_hash(string, &key);
-  memcpy(&ctx->key, mars_set_key(&key, keylen), keylen);
-  memset(&key, 'F', sizeoof(key));
-  */
-
   return 1;
 }
 
@@ -87,7 +79,7 @@ SILC_CIPHER_API_CONTEXT_LEN(aes)
 
 SILC_CIPHER_API_ENCRYPT_CBC(aes)
 {
-  uint32 tiv[4];
+  SilcUInt32 tiv[4];
   int i;
 
   SILC_CBC_GET_IV(tiv, iv);
@@ -112,7 +104,7 @@ SILC_CIPHER_API_ENCRYPT_CBC(aes)
 
 SILC_CIPHER_API_DECRYPT_CBC(aes)
 {
-  uint32 tmp[4], tmp2[4], tiv[4];
+  SilcUInt32 tmp[4], tmp2[4], tiv[4];
   int i;
 
   SILC_CBC_GET_IV(tiv, iv);