Skip to content

Commit

Permalink
scryptenc.h: fix API comment
Browse files Browse the repository at this point in the history
scryptdec_file_load_header: trivial style mistake.

scryptdec_file_prep: missing ${verbose}, should have been part of:
    2018-05-14 scryptdec_file(): refactor with scryptdec_file_prep()
    abfd77e
  • Loading branch information
gperciva committed Jun 10, 2024
1 parent 329439f commit 867360c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/scryptenc/scryptenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int checkparams(size_t, double, double, int, uint32_t, uint32_t, int,
#ifdef POSIXFAIL_ABSTRACT_DECLARATOR
static int scryptdec_file_load_header(FILE * infile, uint8_t header[static 96]);
#else
static int scryptdec_file_load_header(FILE *, uint8_t [static 96]);
static int scryptdec_file_load_header(FILE *, uint8_t[static 96]);
#endif

struct scryptdec_file_cookie {
Expand Down Expand Up @@ -734,7 +734,8 @@ scryptdec_file_load_header(FILE * infile, uint8_t header[static 96])
}

/**
* scryptdec_file_prep(infile, passwd, passwdlen, params, force, cookie):
* scryptdec_file_prep(infile, passwd, passwdlen, params, verbose, force,
* cookie):
* Prepare to decrypt ${infile}, including checking the passphrase. Allocate
* a cookie at ${cookie}. After calling this function, ${infile} should not
* be modified until the decryption is completed by scryptdec_file_copy().
Expand Down
3 changes: 2 additions & 1 deletion lib/scryptenc/scryptenc.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ int scryptdec_file(FILE *, FILE *, const uint8_t *, size_t,
struct scryptenc_params *, int, int);

/**
* scryptdec_file_prep(infile, passwd, passwdlen, params, force, cookie):
* scryptdec_file_prep(infile, passwd, passwdlen, params, verbose, force,
* cookie):
* Prepare to decrypt ${infile}, including checking the passphrase. Allocate
* a cookie at ${cookie}. After calling this function, ${infile} should not
* be modified until the decryption is completed by scryptdec_file_copy().
Expand Down

0 comments on commit 867360c

Please sign in to comment.