updates.
[silc.git] / lib / silccrypt / silccipher.h
index b6134eccfcc013ec582af3398bafbec81b1383af..fb3ec2576a391437cb92b6860b5f1190957dbdc3 100644 (file)
@@ -64,6 +64,10 @@ typedef struct SilcCipherStruct {
   void *context;
   unsigned char iv[SILC_CIPHER_MAX_IV_SIZE];
 
+  /* XXX Backwards support for 0.5.x
+     XXX Remove in 0.7.x */
+  bool back;
+
   void (*set_iv)(struct SilcCipherStruct *, const unsigned char *);
   void (*get_iv)(struct SilcCipherStruct *, unsigned char *);
   uint32 (*get_key_len)(struct SilcCipherStruct *);
@@ -77,6 +81,9 @@ typedef struct SilcCipherStruct {
 /* Static list of ciphers for silc_cipher_register_default(). */
 extern SilcCipherObject silc_default_ciphers[];
 
+/* Default cipher in the SILC protocol */
+#define SILC_DEFAULT_CIPHER "aes-256-cbc"
+
 /* Macros */
 
 /* Function names in SILC Crypto modules. The name of the cipher