updates.
[silc.git] / lib / silccrypt / silcpkcs.h
index 94a7fd8b36184e6b1a854d55b864aa1403a1c04a..5f291328f6a6037bcc3baee641278b3d8bc84ba6 100644 (file)
@@ -99,6 +99,9 @@ typedef struct {
 /* Static list of PKCS for silc_pkcs_register_default(). */
 extern SilcPKCSObject silc_default_pkcs[];
 
+/* Default PKXS in the SILC protocol */
+#define SILC_DEFAULT_PKCS "rsa"
+
 /* Macros */
 
 /* Macros used to implement the SILC PKCS API */
@@ -118,7 +121,7 @@ extern SilcPKCSObject silc_default_pkcs[];
 
    Now we wouldn't have to send the SilcRng object since the primes are 
    provided as arguments. To send them as void * they could actually be 
-   used as in anyway for real (MP_INT (SilcInt) or even something else 
+   used as in anyway for real (MP_INT (SilcMPInt) or even something else 
    (the pointer could be kludged to be something else in the module))
    (Plus, the SilcRng object management in prime generation would be
    simpler and better what it is now (in silcprimegen.c, that is)).
@@ -221,6 +224,7 @@ silc_pkcs_public_key_data_encode(unsigned char *pk, uint32 pk_len,
                                 uint32 *len);
 int silc_pkcs_public_key_decode(unsigned char *data, uint32 data_len,
                                SilcPublicKey *public_key);
+bool silc_pkcs_public_key_compare(SilcPublicKey key1, SilcPublicKey key2);
 unsigned char *
 silc_pkcs_private_key_encode(SilcPrivateKey private_key, uint32 *len);
 unsigned char *