Added support for default hash functions in all PKCS algorithm schemes.
[crypto.git] / lib / silccrypt / rsa.h
index 6a9506a4aadf5896080f723d632d9a18808c4b29..1302f3b4c52f2ca0a0395eb1a400f51f28ed8d6e 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
@@ -22,6 +22,7 @@
 
 /* RSA Public Key */
 typedef struct {
+  SilcHash hash;               /* Default hash */
   SilcMPInt n;                 /* modulus */
   SilcMPInt e;                 /* public exponent */
   int bits;                    /* bits in key */
@@ -29,6 +30,7 @@ typedef struct {
 
 /* RSA Private Key */
 typedef struct {
+  SilcHash hash;               /* Default hash */
   SilcMPInt n;                 /* modulus */
   SilcMPInt e;                 /* public exponent */
   SilcMPInt d;                 /* private exponent */