Merge branch 'topic/mm-fixes' of git://208.110.73.182/silc into silc.1.1.branch
[silc.git] / lib / silcmath / silcmp.h
index 4b7bff9fdb9a537b86cf32bf55f510367ca12ebf..313e7548a6c07afa85955267e2217d78ed52e758 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2005 Pekka Riikonen
+  Copyright (C) 1997 - 2007 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
@@ -75,28 +75,6 @@ typedef SILC_MP_INT SilcMPInt;
  ***/
 void silc_mp_init(SilcMPInt *mp);
 
-/****f* silcmath/SilcMPAPI/silc_mp_sinit
- *
- * SYNOPSIS
- *
- *    SilcBool silc_mp_sinit(SilcStack stack, SilcMPInt *mp);
- *
- * DESCRIPTION
- *
- *    Initializes the SilcMPInt *that is the actual MP Integer.
- *    This must be called before any of the silc_mp_ routines can be
- *    used. The integer is uninitialized with the silc_mp_uninit function.
- *    This routine is equivalent to silc_mp_init but allocates the memory
- *    from `stack'.
- *
- * NOTES
- *
- *    The `stack' is saved into the `mp' for the duration of the existence
- *    of `mp'.  This means that `stack' must not become invalid while `mp'
- *    is used.  It also means that any routine that may need memory allocation
- *    to for example enlarge `mp' will allocate the memory from `stack'.
- *
- ***/
 SilcBool silc_mp_sinit(SilcStack stack, SilcMPInt *mp);
 
 /****f* silcmath/SilcMPAPI/silc_mp_uninit
@@ -662,7 +640,7 @@ unsigned char *silc_mp_mp2bin(SilcMPInt *val, SilcUInt32 len,
  * DESCRIPTION
  *
  *    Same as silc_mp_mp2bin but does not allocate any memory.  The
- *    encoded data is returned into `dst' and it's length to the `ret_len'.
+ *    encoded data is returned into `dst' of size of `dst_len'.
  *
  ***/
 void silc_mp_mp2bin_noalloc(SilcMPInt *val, unsigned char *dst,