diff src/protocols/sametime/meanwhile/mw_cipher.h @ 12311:a2ebf585d8c6

[gaim-migrate @ 14615] should work fine, but I have to go home now. This ought to clean up all the signedness warnings, start to remove some unnecessary features (server-stored status messages), and add a useful feature (pretending to be an official client when the server is blocking unofficial clients) committer: Tailor Script <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Sun, 04 Dec 2005 04:09:30 +0000
parents 2edf5dc1b2ea
children fc464a0abccc
line wrap: on
line diff
--- a/src/protocols/sametime/meanwhile/mw_cipher.h	Sun Dec 04 02:53:47 2005 +0000
+++ b/src/protocols/sametime/meanwhile/mw_cipher.h	Sun Dec 04 04:09:30 2005 +0000
@@ -195,37 +195,37 @@
     @param keylen  count of bytes to write into key
     @param key     buffer to write keys into
 */
-void mwKeyRandom(unsigned char *key, gsize keylen);
+void mwKeyRandom(guchar *key, gsize keylen);
 
 
 /** Setup an Initialization Vector. IV must be at least 8 bytes */
-void mwIV_init(unsigned char *iv);
+void mwIV_init(guchar *iv);
 
 
 /** Expand a variable-length key into a 128-byte key (represented as
     an an array of 64 ints) */
-void mwKeyExpand(int *ekey, const char *key, gsize keylen);
+void mwKeyExpand(int *ekey, const guchar *key, gsize keylen);
 
 
 /** Encrypt data using an already-expanded key */
-void mwEncryptExpanded(const int *ekey, unsigned char *iv,
+void mwEncryptExpanded(const int *ekey, guchar *iv,
 		       struct mwOpaque *in,
 		       struct mwOpaque *out);
 
 
 /** Encrypt data using an expanded form of the given key */
-void mwEncrypt(const char *key, gsize keylen, unsigned char *iv,
+void mwEncrypt(const guchar *key, gsize keylen, guchar *iv,
 	       struct mwOpaque *in, struct mwOpaque *out);
 
 
 /** Decrypt data using an already expanded key */
-void mwDecryptExpanded(const int *ekey, unsigned char *iv,
+void mwDecryptExpanded(const int *ekey, guchar *iv,
 		       struct mwOpaque *in,
 		       struct mwOpaque *out);
 
 
 /** Decrypt data using an expanded form of the given key */
-void mwDecrypt(const char *key, gsize keylen, unsigned char *iv,
+void mwDecrypt(const guchar *key, gsize keylen, guchar *iv,
 	       struct mwOpaque *in, struct mwOpaque *out);