diff options
author | Werner Koch <wk@gnupg.org> | 2014-12-28 14:26:48 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-01-05 16:56:57 +0100 |
commit | c420c0fff5e3b5bdd9ef1a6a4a9b2e1da8301416 (patch) | |
tree | dceb775c46b268a9ea48696b7492568b946869f6 /cipher/hash-common.c | |
parent | 943ce27e6a13057c988c35c913dc6a3f56149591 (diff) | |
download | libgcrypt-c420c0fff5e3b5bdd9ef1a6a4a9b2e1da8301416.tar.gz |
doc: State that gcry_md_write et al may be used after md_read.
--
Diffstat (limited to 'cipher/hash-common.c')
-rw-r--r-- | cipher/hash-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cipher/hash-common.c b/cipher/hash-common.c index ed63a0ba..9a007e12 100644 --- a/cipher/hash-common.c +++ b/cipher/hash-common.c @@ -95,7 +95,10 @@ _gcry_hash_selftest_check_one (int algo, /* Common function to write a chunk of data to the transform function of a hash algorithm. Note that the use of the term "block" does - not imply a fixed size block. */ + not imply a fixed size block. Note that we explicitly allow to use + this function after the context has been finalized; the result does + not have any meaning but writing after finalize is sometimes + helpful to mitigate timing attacks. */ void _gcry_md_block_write (void *context, const void *inbuf_arg, size_t inlen) { |