- Timestamp:
- 2007-07-14T23:54:18Z (17 years ago)
- Branches:
- master
- Children:
- 2abfbc5
- Parents:
- 1da00b1 (diff), b9e4ab5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/rc4.c
r1da00b1 ra8a0b4c 122 122 */ 123 123 124 int rc4_encode( unsignedchar *clear, int clear_len, unsigned char **crypt, char *password )124 int rc4_encode( char *clear, int clear_len, unsigned char **crypt, char *password ) 125 125 { 126 126 struct rc4_state *st; … … 130 130 key_len = strlen( password ) + RC4_IV_LEN; 131 131 if( clear_len <= 0 ) 132 clear_len = strlen( (char*)clear );132 clear_len = strlen( clear ); 133 133 134 134 /* Prepare buffers and the key + IV */ … … 154 154 } 155 155 156 int rc4_decode( unsigned char *crypt, int crypt_len, unsignedchar **clear, char *password )156 int rc4_decode( unsigned char *crypt, int crypt_len, char **clear, char *password ) 157 157 { 158 158 struct rc4_state *st; … … 165 165 if( clear_len < 0 ) 166 166 { 167 *clear = (unsigned char*)g_strdup( "" );167 *clear = g_strdup( "" ); 168 168 return 0; 169 169 }
Note: See TracChangeset
for help on using the changeset viewer.