summaryrefslogtreecommitdiff
path: root/include/encrypt.h
blob: d403ab1dd5177d5274ec2ac611871158952c7c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Include file for high-level encryption routines.
 *
 * (C) 2003-2012 Anope Team
 * Contact us at team@anope.org
 *
 * Please read COPYING and README for further details.
 *
 * Based on the original code of Epona by Lara.
 * Based on the original code of Services by Andy Church. 
 * 
 *
 */

typedef struct encryption_ {
    int (*encrypt)(const char *src, int len, char *dest, int size);
    int (*encrypt_check_len)(int passlen, int bufsize);
    int (*decrypt)(const char *src, char *dest, int size);
    int (*check_password)(const char *plaintext, const char *password);
} Encryption;