Thu, 09 May 2013 20:24:26 +0200
AES support
|
33907
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
1 | /* purple |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
2 | * |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
5 | * source distribution. |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
6 | * |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
10 | * (at your option) any later version. |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
11 | * |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
15 | * GNU General Public License for more details. |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
16 | * |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
20 | */ |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
21 | |
| 34182 | 22 | /* aes.c */ |
| 23 | PurpleCipherOps * purple_aes_cipher_get_ops(void); | |
| 24 | ||
|
33907
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
25 | /* des.c */ |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
26 | PurpleCipherOps * purple_des_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
27 | PurpleCipherOps * purple_des3_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
28 | |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
29 | /* gchecksum.c */ |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
30 | PurpleCipherOps * purple_md5_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
31 | PurpleCipherOps * purple_sha1_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
32 | PurpleCipherOps * purple_sha256_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
33 | |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
34 | /* hmac.c */ |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
35 | PurpleCipherOps * purple_hmac_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
36 | |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
37 | /* md4.c */ |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
38 | PurpleCipherOps * purple_md4_cipher_get_ops(void); |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
39 | |
|
34178
4712cf749699
PBKDF2 support
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33907
diff
changeset
|
40 | /* pbkdf2.c */ |
|
4712cf749699
PBKDF2 support
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33907
diff
changeset
|
41 | PurpleCipherOps * purple_pbkdf2_cipher_get_ops(void); |
|
4712cf749699
PBKDF2 support
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33907
diff
changeset
|
42 | |
|
33907
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
43 | /* rc4.c */ |
|
1046f312d35e
dos2unix ciphers.h, my bad
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33881
diff
changeset
|
44 | PurpleCipherOps * purple_rc4_cipher_get_ops(void); |
| 34182 | 45 | |
| 46 | static inline void purple_ciphers_register_all(void) | |
| 47 | { | |
| 48 | #if defined(HAVE_GNUTLS) || defined(HAVE_NSS) | |
| 49 | purple_ciphers_register_cipher("aes", purple_aes_cipher_get_ops()); | |
| 50 | #endif | |
| 51 | ||
| 52 | purple_ciphers_register_cipher("des", purple_des_cipher_get_ops()); | |
| 53 | purple_ciphers_register_cipher("des3", purple_des3_cipher_get_ops()); | |
| 54 | ||
| 55 | purple_ciphers_register_cipher("md5", purple_md5_cipher_get_ops()); | |
| 56 | purple_ciphers_register_cipher("sha1", purple_sha1_cipher_get_ops()); | |
| 57 | purple_ciphers_register_cipher("sha256", purple_sha256_cipher_get_ops()); | |
| 58 | ||
| 59 | purple_ciphers_register_cipher("hmac", purple_hmac_cipher_get_ops()); | |
| 60 | ||
| 61 | purple_ciphers_register_cipher("md4", purple_md4_cipher_get_ops()); | |
| 62 | ||
| 63 | purple_ciphers_register_cipher("pbkdf2", purple_pbkdf2_cipher_get_ops()); | |
| 64 | ||
| 65 | purple_ciphers_register_cipher("rc4", purple_rc4_cipher_get_ops()); | |
| 66 | } |