From d1648b4d7a2e045bc8ee81f666627d6a792564d6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 25 May 2000 16:28:04 +0000 Subject: See ChangeLog: Thu May 25 18:39:11 CEST 2000 Werner Koch --- doc/gcryptref-digest.sgml | 17 +- g10/ChangeLog | 7 + g10/Makefile.am | 8 +- g10/build-packet.c | 3 +- g10/gpg.c | 4 +- g10/gpgd.c | 2 +- g10/kbx.h | 21 ++- g10/kbxblob.c | 399 +++++++++++++++++++++++++++++++++++------ g10/kbxfile.c | 291 +++++++++++++++++++++++++++++- g10/kbxio.c | 75 ++++++++ g10/kbxutil.c | 442 ++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 1208 insertions(+), 61 deletions(-) create mode 100644 g10/kbxio.c create mode 100644 g10/kbxutil.c diff --git a/doc/gcryptref-digest.sgml b/doc/gcryptref-digest.sgml index f0d5efff4..a123c9b25 100644 --- a/doc/gcryptref-digest.sgml +++ b/doc/gcryptref-digest.sgml @@ -65,7 +65,10 @@ gcry_md_open creates the context required for the message digest functions. The hash algorithm may optionally be - specified. + specified. It is possible to use these functions as MAC functons; therefore + the flag gcry_md_close releases all resources associated with the context. gcry_md_enable may be used to enable hash @@ -149,6 +152,7 @@ gcry_md_ctl gcry_md_final + gcry_md_setkey perform special operations on a digest context @@ -179,9 +183,18 @@ Currently defined values for cmd are: - GCRYCTL_FINALIZE and the conevnience macro + + + GCRYCTL_FINALIZE and the convenience macro gcry_md_final(a) + + GCRYCTL_SET_KEY and the convenience macro + gcry_md_setkey(a). This is used to turn these + hash functions into MAC functions. The key may be any string + of the speicified length. The type of the MAC is determined + by special flags set with the open function. +