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 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'doc') 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. +