00001 /* Include file for high-level encryption routines. 00002 * 00003 * (C) 2003-2007 Anope Team 00004 * Contact us at info@anope.org 00005 * 00006 * Please read COPYING and README for furhter details. 00007 * 00008 * Based on the original code of Epona by Lara. 00009 * Based on the original code of Services by Andy Church. 00010 * 00011 * $Id: encrypt.h 1265 2007-08-26 15:33:06Z geniusdex $ 00012 * 00013 */ 00014 00015 typedef struct encryption_ { 00016 int (*encrypt)(const char *src, int len, char *dest, int size); 00017 int (*encrypt_in_place)(char *buf, int size); 00018 int (*encrypt_check_len)(int passlen, int bufsize); 00019 int (*decrypt)(const char *src, char *dest, int size); 00020 int (*check_password)(const char *plaintext, const char *password); 00021 } Encryption; 00022
1.5.1-20070107