- Timestamp:
- 2007-10-07T20:42:37Z (16 years ago)
- Branches:
- master
- Children:
- 2305488
- Parents:
- 9334cc2
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
lib/arc.h
r9334cc2 ra7b5925 2 2 * * 3 3 * BitlBee - An IRC to IM gateway * 4 * Simple (but secure) RC4 implementation for safer password storage.*4 * Simple (but secure) ArcFour implementation for safer password storage. * 5 5 * * 6 * Copyright 200 6Wilmer van der Gaast <wilmer@gaast.net> *6 * Copyright 2007 Wilmer van der Gaast <wilmer@gaast.net> * 7 7 * * 8 8 * This program is free software; you can redistribute it and/or modify * … … 23 23 24 24 25 /* See rc4.c for more information. */25 /* See arc.c for more information. */ 26 26 27 struct rc4_state27 struct arc_state 28 28 { 29 29 unsigned char S[256]; … … 31 31 }; 32 32 33 struct rc4_state *rc4_keymaker( unsigned char *key, int kl, int cycles );34 unsigned char rc4_getbyte( struct rc4_state *st );35 int rc4_encode( char *clear, int clear_len, unsigned char **crypt, char *password );36 int rc4_decode( unsigned char *crypt, int crypt_len, char **clear, char *password );33 struct arc_state *arc_keymaker( unsigned char *key, int kl, int cycles ); 34 unsigned char arc_getbyte( struct arc_state *st ); 35 int arc_encode( char *clear, int clear_len, unsigned char **crypt, char *password ); 36 int arc_decode( unsigned char *crypt, int crypt_len, char **clear, char *password );
Note: See TracChangeset
for help on using the changeset viewer.