updates. New data types.
[silc.git] / lib / silccrypt / silcdh.h
index e51f69278d6a236b732b59e5650db3235e72f732..13c76a34b7dd7aaac4eb7b6bc05a1ba9679103f8 100644 (file)
@@ -57,7 +57,7 @@ SilcDH silc_dh_alloc(SilcRng rng, SilcInt *g, SilcInt *p, SilcInt *lpf);
    allocation. Frees all the allocated data inside the DH context. */
 void silc_dh_free(SilcDH dh);
 
-/* Generates random private value `x' such that 0 < x < lpf at least of
+/* Generates random private value `x' such that 0 < x < lpf at most of
    length of lpf. Returns FALSE if the random number could not be generated.
    Returns the generated value into `x' pointer sent as argument, unless
    the `x' is NULL. The returned `x' must no be freed by the caller. */
@@ -71,7 +71,7 @@ int silc_dh_compute_public(SilcDH dh, SilcInt **y);
 
 /* Sets the remote end's public value y' into the DH context. This must be
    done before computing the secret key. Returns FALSE on error. */
-int silc_dh_set_remote_public(SilcDH dh, SilcInt **y);
+int silc_dh_set_remote_public(SilcDH dh, SilcInt *y);
 
 /* Computes the secret key z = y' ^ x mod p, and returns the key to the
    `z' pointer sent as argument, unless the `z' is NULL. Returns FALSE if
@@ -82,6 +82,6 @@ int silc_dh_compute_key(SilcDH dh, SilcInt **z);
 /* Same as above but returns the computed secret key as octet binary
    string. */
 int silc_dh_compute_key_data(SilcDH dh, unsigned char **z, 
-                            unsigned int *z_len);
+                            uint32 *z_len);
 
 #endif