Skip to content

Commit

Permalink
crypto: testmgr - Correct comment about deflate parameters
Browse files Browse the repository at this point in the history
The comment for the deflate test vectors says the winbits parameter is 11,
while the deflate module actually uses -11 (a negative window bits parameter
enables the raw deflate format instead of the zlib format).
Correct this, to avoid confusion about the format used.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Geert Uytterhoeven authored and herbertx committed Dec 25, 2008
1 parent f0d1ec3 commit bcf84a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/testmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -8349,7 +8349,7 @@ struct comp_testvec {

/*
* Deflate test vectors (null-terminated strings).
* Params: winbits=11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
* Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
*/
#define DEFLATE_COMP_TEST_VECTORS 2
#define DEFLATE_DECOMP_TEST_VECTORS 2
Expand Down

0 comments on commit bcf84a3

Please sign in to comment.