| 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 */ |