Added support for default hash functions in all PKCS algorithm schemes.
[crypto.git] / lib / silccrypt / silcpkcs_i.h
index 62df5108857e74f4414f80a75c0816cbb848a3df..7d6661126df5935fb810aa0f439fbdfd47a2d37b 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2007 Pekka Riikonen
+  Copyright (C) 1997 - 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
                          SilcUInt32 signature_len,                     \
                          unsigned char *data,                          \
                          SilcUInt32 data_len,                          \
+                         SilcBool compute_hash,                        \
                          SilcHash hash,                                \
                          SilcRng rng,                                  \
                          SilcPKCSVerifyCb verify_cb,                   \
@@ -232,6 +233,7 @@ struct SilcPKCSAlgorithmStruct {
 #define SILC_PKCS_IMPORT_PRIVATE_KEY(name)                             \
   int name(const struct SilcPKCSObjectStruct *pkcs,                    \
           const struct SilcPKCSAlgorithmStruct *alg,                   \
+          const char *passphrase, SilcUInt32 passphrase_len,           \
           void *key, SilcUInt32 key_len, void **ret_private_key,       \
           const struct SilcPKCSAlgorithmStruct **ret_alg)
 
@@ -287,6 +289,7 @@ struct SilcPKCSAlgorithmStruct {
                          SilcUInt32 signature_len,                     \
                          unsigned char *data,                          \
                          SilcUInt32 data_len,                          \
+                         SilcBool compute_hash,                        \
                          SilcHash hash,                                \
                          SilcRng rng,                                  \
                          SilcPKCSVerifyCb verify_cb,                   \