Anope IRC Services  Version 1.8
encrypt.h
Go to the documentation of this file.
1 /* Include file for high-level encryption routines.
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  *
12  */
13 
14 typedef struct encryption_ {
15  int (*encrypt)(const char *src, int len, char *dest, int size);
16  int (*encrypt_check_len)(int passlen, int bufsize);
17  int (*decrypt)(const char *src, char *dest, int size);
18  int (*check_password)(const char *plaintext, const char *password);
19 } Encryption;
20 
int(* decrypt)(const char *src, char *dest, int size)
Definition: encrypt.h:17
int(* check_password)(const char *plaintext, const char *password)
Definition: encrypt.h:18
struct encryption_ Encryption
int(* encrypt)(const char *src, int len, char *dest, int size)
Definition: encrypt.h:15
int(* encrypt_check_len)(int passlen, int bufsize)
Definition: encrypt.h:16