aboutsummaryrefslogtreecommitdiffstats
path: root/man3/hstrerror.3
diff options
context:
space:
mode:
authorKonstantin Shemyak <konstantin@shemyak.com>2017-09-04 21:53:53 +0300
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-09-05 19:49:35 +0200
commit84bee58c24fb964a61f01dfd35417d43c6bb85cc (patch)
tree25342722792424ba69c9277b4ba2150e31b3969f /man3/hstrerror.3
parentd32b36982dc108a345babbd7490131729cb0c60c (diff)
downloadman-pages-84bee58c24fb964a61f01dfd35417d43c6bb85cc.tar.gz
crypt.3: Add description of previously undocumented 'rounds' parameter
Files crypt/sha{256,512}-crypt.c in the glibc source define macros: /* Default number of rounds if not explicitly specified. */ #define ROUNDS_DEFAULT 5000 /* Minimum number of rounds. */ #define ROUNDS_MIN 1000 /* Maximum number of rounds. */ #define ROUNDS_MAX 999999999 And the main encryption function __sha512_crypt_r() sets: rounds = MAX (ROUNDS_MIN, MIN (srounds, ROUNDS_MAX)); One can check that for example crypt("key", "$5$rounds=1$salt") returns the string $5$rounds=1000$salt$PWLKU7MTJ0s5M/mjBPcqnMsorm3qKyoBctxmZ1mNwn2 This parameter has been introduced in glibc 2.7. Signed-off-by: Konstantin Shemyak <konstantin@shemyak.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/hstrerror.3')
0 files changed, 0 insertions, 0 deletions