mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Improve API documentation.
* g10/seskey.c (make_session_key): Improve documentation. (encode_session_key): Improve documentation. * g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization. * g10/dek.h (DEK): Improve documenation. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
5cdde08ea8
commit
9663b08848
3 changed files with 24 additions and 13 deletions
|
@ -75,7 +75,6 @@ encrypt_seskey (DEK *dek, DEK **seskey, byte *enckey)
|
|||
if (!*seskey)
|
||||
{
|
||||
*seskey=xmalloc_clear(sizeof(DEK));
|
||||
(*seskey)->keylen=dek->keylen;
|
||||
(*seskey)->algo=dek->algo;
|
||||
make_session_key(*seskey);
|
||||
/*log_hexdump( "thekey", c->key, c->keylen );*/
|
||||
|
@ -326,7 +325,7 @@ encrypt_simple (const char *filename, int mode, int use_seskey)
|
|||
|
||||
if (!opt.no_literal)
|
||||
{
|
||||
/* Note that PT has been initialized above in no_literal mode. */
|
||||
/* Note that PT has been initialized above in !no_literal mode. */
|
||||
pt->timestamp = make_timestamp();
|
||||
pt->mode = opt.textmode? 't' : 'b';
|
||||
pt->len = filesize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue