libpurple/ciphers/pbkdf2cipher.h

Sat, 29 Jun 2013 22:10:18 +0530

author
Ankit Vani <a@nevitus.org>
date
Sat, 29 Jun 2013 22:10:18 +0530
branch
soc.2013.gobjectification
changeset 34678
40a30f74a7b8
parent 34566
e0f887dee077
child 34691
3acdd397a9c1
permissions
-rw-r--r--

Removed purple_conversation_[gs]et_data(). Used g_object_[gs]et_data() instead.
Removed data from PurpleConversationPrivate.

34543
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
1 /**
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
2 * @file pbkdf2.h Purple PBKDF2 Cipher
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
3 * @ingroup core
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
4 */
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
5
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
6 /* purple
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
7 *
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
8 * Purple is the legal property of its developers, whose names are too numerous
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
10 * source distribution.
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
11 *
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
15 * (at your option) any later version.
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
16 *
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
20 * GNU General Public License for more details.
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
21 *
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
25 */
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
26 #ifndef PURPLE_PBKDF2_CIPHER_H
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
27 #define PURPLE_PBKDF2_CIPHER_H
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
28
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
29 #include "cipher.h"
34566
e0f887dee077 Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents: 34543
diff changeset
30 #include "hash.h"
34543
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
31
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
32 #define PURPLE_TYPE_PBKDF2_CIPHER (purple_pbkdf2_cipher_get_gtype())
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
33 #define PURPLE_PBKDF2_CIPHER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_PBKDF2_CIPHER, PurplePBKDF2Cipher))
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
34 #define PURPLE_PBKDF2_CIPHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_PBKDF2_CIPHER, PurplePBKDF2CipherClass))
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
35 #define PURPLE_IS_PBKDF2_CIPHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PBKDF2_CIPHER))
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
36 #define PURPLE_IS_PBKDF2_CIPHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), PURPLE_TYPE_PBKDF2_CIPHER))
34566
e0f887dee077 Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents: 34543
diff changeset
37 #define PURPLE_PBKDF2_CIPHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_PBKDF2_CIPHER, PurplePBKDF2CipherClass))
34543
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
38
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
39 typedef struct _PurplePBKDF2Cipher PurplePBKDF2Cipher;
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
40 typedef struct _PurplePBKDF2CipherClass PurplePBKDF2CipherClass;
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
41
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
42 struct _PurplePBKDF2Cipher {
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
43 PurpleCipher gparent;
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
44
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
45 void (*_purple_reserved1)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
46 void (*_purple_reserved2)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
47 void (*_purple_reserved3)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
48 void (*_purple_reserved4)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
49 };
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
50
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
51 struct _PurplePBKDF2CipherClass {
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
52 PurpleCipherClass gparent;
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
53
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
54 void (*_purple_reserved1)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
55 void (*_purple_reserved2)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
56 void (*_purple_reserved3)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
57 void (*_purple_reserved4)(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
58 };
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
59
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
60 G_BEGIN_DECLS
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
61
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
62 GType purple_pbkdf2_cipher_get_gtype(void);
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
63
34566
e0f887dee077 Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents: 34543
diff changeset
64 PurpleCipher *purple_pbkdf2_cipher_new(PurpleHash *hash);
34543
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
65
34566
e0f887dee077 Split PurpleCipher into PurpleCipher and PurpleHash. Hashes will subclass PurpleHash.
Ankit Vani <a@nevitus.org>
parents: 34543
diff changeset
66 PurpleHash *purple_pbkdf2_cipher_get_hash(const PurplePBKDF2Cipher *cipher);
34543
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
67
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
68 G_END_DECLS
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
69
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
70 #endif /* PURPLE_PBKDF2_CIPHER_H */
5d7a7966a23c GObjectified PBKDF2 cipher as PurplePBKDF2Cipher
Ankit Vani <a@nevitus.org>
parents:
diff changeset
71

mercurial