Changed SILC code to use new SRT and SCT APIs.
[silc.git] / lib / silccore / silcauth.h
index 438c461cee75650958d8b82c2129ef73ea9072bc..a8d4512a04d1d6710219ac2da7f83fd26048ba8d 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2001 - 2007 Pekka Riikonen
+  Copyright (C) 2001 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 #ifndef SILCAUTH_H
 #define SILCAUTH_H
 
+#define SILC_DEFAULT_HMAC "hmac-sha1-96"
+#define SILC_DEFAULT_HASH "sha1"
+#define SILC_DEFAULT_PKCS "rsa"
+#define SILC_DEFAULT_CIPHER "aes-256-cbc"
+
 /****d* silccore/SilcAuthAPI/SilcAuthMethod
  *
  * NAME
@@ -267,6 +272,7 @@ silc_auth_public_key_auth_generate(SilcPublicKey public_key,
  *                                            const unsigned char *pubdata,
  *                                            SilcUInt32 pubdata_len,
  *                                            SilcHash hash,
+ *                                            SilcRng rng,
  *                                            const void *id,
  *                                            SilcIdType type,
  *                                            SilcAuthGenerated generated,
@@ -289,6 +295,7 @@ silc_auth_public_key_auth_generate_wpub(SilcPublicKey public_key,
                                        const unsigned char *pubdata,
                                        SilcUInt32 pubdata_len,
                                        SilcHash hash,
+                                       SilcRng rng,
                                        const void *id, SilcIdType type,
                                        SilcAuthGenerated generated,
                                        void *context);