Mercurial > pidgin
comparison libpurple/cipher.h @ 32317:d72f2f13b60f
merge of 'c8c73eea7431e6f940916315ace40a41c8da3faa'
and 'fec428131bde0ae8247941bd6a3d996c984c9189'
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Fri, 21 Oct 2011 14:36:18 +0000 |
| parents | 5876584828e8 |
| children |
comparison
equal
deleted
inserted
replaced
| 32316:14787acaf9d7 | 32317:d72f2f13b60f |
|---|---|
| 39 typedef struct _PurpleCipherContext PurpleCipherContext; /**< A context for a PurpleCipher */ | 39 typedef struct _PurpleCipherContext PurpleCipherContext; /**< A context for a PurpleCipher */ |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * Modes for batch encrypters | 42 * Modes for batch encrypters |
| 43 */ | 43 */ |
| 44 typedef enum _PurpleCipherBatchMode { | 44 typedef enum { |
| 45 PURPLE_CIPHER_BATCH_MODE_ECB, | 45 PURPLE_CIPHER_BATCH_MODE_ECB, |
| 46 PURPLE_CIPHER_BATCH_MODE_CBC | 46 PURPLE_CIPHER_BATCH_MODE_CBC |
| 47 } PurpleCipherBatchMode; | 47 } PurpleCipherBatchMode; |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * The operation flags for a cipher | 50 * The operation flags for a cipher |
| 51 */ | 51 */ |
| 52 typedef enum _PurpleCipherCaps { | 52 typedef enum { |
| 53 PURPLE_CIPHER_CAPS_SET_OPT = 1 << 1, /**< Set option flag */ | 53 PURPLE_CIPHER_CAPS_SET_OPT = 1 << 1, /**< Set option flag */ |
| 54 PURPLE_CIPHER_CAPS_GET_OPT = 1 << 2, /**< Get option flag */ | 54 PURPLE_CIPHER_CAPS_GET_OPT = 1 << 2, /**< Get option flag */ |
| 55 PURPLE_CIPHER_CAPS_INIT = 1 << 3, /**< Init flag */ | 55 PURPLE_CIPHER_CAPS_INIT = 1 << 3, /**< Init flag */ |
| 56 PURPLE_CIPHER_CAPS_RESET = 1 << 4, /**< Reset flag */ | 56 PURPLE_CIPHER_CAPS_RESET = 1 << 4, /**< Reset flag */ |
| 57 PURPLE_CIPHER_CAPS_UNINIT = 1 << 5, /**< Uninit flag */ | 57 PURPLE_CIPHER_CAPS_UNINIT = 1 << 5, /**< Uninit flag */ |
