libgcrypt documentation
Simon Josefsson
jas@extundo.com
Tue, 10 Sep 2002 05:01:27 +0200
--=-=-=
Werner Koch <wk@gnupg.org> writes:
> On Sun, 08 Sep 2002 11:43:45 -0300, Rafael P Laufer said:
>
>> Where is this reference manual ??
>
> libgcrypt-1.1.9/doc/gcrypt.info
>
> Be warned, a lot of stuff is missing. Do you want to volunteer?
Not volunteering, but offering a starting point -- at least a possible
starting point, I find writing API documentation using gdoc is nice.
Just C-x 4 h on a function (using gnome-doc.el, from e.g. the
gnome-libs-data Debian package), write documentation, and it is
automatically generated into texinfo which can be included in the main
manual. No need to synch separate manual with the code.
I started moving some documentation from doc/gcrypt.texi into
cipher/cipher.c but soon got bored... I'm not sure how to do the
#define macros too. Ideally they should be converted into @deftypefn
Macro: or something like that. Perhaps someone like to pick up.
If someone has ideas on or pointers to a more robust tools for this
approach, I'd appreciate it. I haven't seen anything like this for
texinfo (I added texinfo support to gdoc for another project).
Index: configure.ac
===================================================================
RCS file: /cvs/gnupg/libgcrypt/configure.ac,v
retrieving revision 1.19
diff -u -p -r1.19 configure.ac
--- configure.ac 23 Aug 2002 20:05:18 -0000 1.19
+++ configure.ac 10 Sep 2002 02:51:57 -0000
@@ -175,6 +175,7 @@ AM_MISSING_PROG(AUTOCONF, autoconf, $mis
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
dnl AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
+AM_MISSING_PROG(PERL, perl, $missing_dir)
AC_PROG_CC
AC_PROG_CPP
AM_PROG_AS
Index: cipher/cipher.c
===================================================================
RCS file: /cvs/gnupg/libgcrypt/cipher/cipher.c,v
retrieving revision 1.46
diff -u -p -r1.46 cipher.c
--- cipher/cipher.c 17 Aug 2002 09:15:54 -0000 1.46
+++ cipher/cipher.c 10 Sep 2002 02:51:57 -0000
@@ -490,13 +490,17 @@ cipher_get_blocksize( int algo )
return 0;
}
-
-/****************
- * Open a cipher handle for use with algorithm ALGO, in mode MODE
- * and return the handle. Return NULL and set the internal error variable
- * if something goes wrong.
- */
-
+/**
+ * gcry_cipher_open:
+ * @algo: Algorithm number, e.g. %GCRY_CIPHER_AES.
+ * @mode: Mode of operation, e.g. %GCRY_CIPHER_MODE_CBC.
+ * @flags: Flags, including %GCRY_CIPHER_SECURE and %GCRY_CIPHER_ENABLE_SYNC.
+ *
+ * This function creates the context required for most of the othercipher
+ * functions.
+ *
+ * Return value: In case of an error @code{NULL} is returned.
+ **/
GCRY_CIPHER_HD
gcry_cipher_open( int algo, int mode, unsigned int flags )
{
@@ -580,6 +584,12 @@ gcry_cipher_open( int algo, int mode, un
}
+/**
+ * gcry_cipher_close:
+ * @h: Handle from gcry_cipher_open().
+ *
+ * This function releases the context created by @code{gcry_cipher_open}.
+ **/
void
gcry_cipher_close( GCRY_CIPHER_HD h )
{
@@ -953,6 +963,13 @@ cipher_sync( GCRY_CIPHER_HD c )
}
+/**
+ * gcry_cipher_ctl:
+ *
+ * gcry_cipher_ctl() controls various aspects of the cipher module and
+ * specific cipher contexts. Usually some more specialzed functions are
+ * used for this purpose.
+ **/
int
gcry_cipher_ctl( GCRY_CIPHER_HD h, int cmd, void *buffer, size_t buflen)
{
Index: doc/Makefile.am
===================================================================
RCS file: /cvs/gnupg/libgcrypt/doc/Makefile.am,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile.am
--- doc/Makefile.am 14 May 2002 13:11:06 -0000 1.21
+++ doc/Makefile.am 10 Sep 2002 02:51:57 -0000
@@ -22,3 +22,7 @@ DISTCLEANFILES = gcrypt.cps
info_TEXINFOS = gcrypt.texi
gcrypt_TEXINFOS = lgpl.texi gpl.texi fdl.texi
+gcrypt.info: gcrypt.texi cipher-ref.texi
+
+cipher-ref.texi: $(top_srcdir)/cipher/cipher.c
+ $(PERL) gdoc -texinfo $(top_srcdir)/cipher/cipher.c > $@
Index: doc/gcrypt.texi
===================================================================
RCS file: /cvs/gnupg/libgcrypt/doc/gcrypt.texi,v
retrieving revision 1.3
diff -u -p -r1.3 gcrypt.texi
--- doc/gcrypt.texi 14 Aug 2002 19:07:55 -0000 1.3
+++ doc/gcrypt.texi 10 Sep 2002 02:51:57 -0000
@@ -272,29 +272,10 @@ gcc -o foo foo.c `libgcrypt-config --cfl
@c **********************************************************
@c ******************* Ciphers ****************************
@c **********************************************************
-@c @include cipher-ref.texi
@node Cipher Functions
@chapter Cipher Functions
-
-@deftypefun GCRY_CIPHER_HD gcry_cipher_open (int @var{algo}, int @var{mode}, unsigned int @var{flags})
-
-This function creates the context required for most of the othercipher
-functions. In case of an error @code{NULL} is returned.
-@end deftypefun
-
-@deftypefun void gcry_cipher_close (GCRY_CIPHER_HD @var{h})
-
-This function releases the context created by @code{gcry_cipher_open}.
-@end deftypefun
-
-
-@deftypefun int gcry_cipher_ctl (GCRY_CIPHER_HD @var{h}, int @var{cmd}, void *@var{buffer}, size_t @var{buflen})
-
-@code{gcry_cipher_ctl} controls various aspects of the cipher module and
-specific cipher contexts. Usually some more specialzed functions are
-used for this purpose.
-@end deftypefun
+@include cipher-ref.texi
@deftypefun int gcry_cipher_setkey (GCRY_CIPHER_HD @var{h}, void *@var{k}, size_t @var{l})
--=-=-=
Content-Type: application/x-perl
Content-Disposition: attachment; filename=gdoc
Content-Transfer-Encoding: base64
Content-Description: gnome-doc
IyEvdXNyL2Jpbi9wZXJsCgojIyBDb3B5cmlnaHQgKGMpIDE5OTggTWljaGFlbCBadWNjaGksIEFs
bCBSaWdodHMgUmVzZXJ2ZWQgICAgICAgICMjCiMjICAgICAgICAgICAgICAgICAgICBoYWNrZWQg
dG8gYWxsb3cgLXRleCBvcHRpb24gLS1ubWF2ICAgICAgICAgIyMKIyMgICAgICAgICAgICAgICAg
ICAgIGhhY2tlZCB0byBhbGxvdyAtdGV4aW5mbyBvcHRpb24gLS1qYXMgICAgICAjIwojIyAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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