mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
PuTTYgen: explicitly use 'Kbyte' in Argon2 naming.
Instead of 'Kb', which could be misread as 'Kbit'.
This commit is contained in:
parent
20d5055a3a
commit
97137f5cfd
2
cmdgen.c
2
cmdgen.c
@ -157,7 +157,7 @@ void help(void)
|
||||
"default 3)\n"
|
||||
" kdf key derivation function (argon2id, "
|
||||
"argon2i, argon2d)\n"
|
||||
" memory Kb of memory to use in password hash "
|
||||
" memory Kbyte of memory to use in password hash "
|
||||
"(default 8192)\n"
|
||||
" time approx milliseconds to hash for "
|
||||
"(default 100)\n"
|
||||
|
@ -124,7 +124,7 @@ passphrase:
|
||||
password-hashing function.
|
||||
|
||||
The three integer values are used as parameters for Argon2, which
|
||||
allows you to configure the amount of memory used (in Kb), the number
|
||||
allows you to configure the amount of memory used (in Kbyte), the number
|
||||
of passes of the algorithm to run (to tune its running time), and the
|
||||
degree of parallelism required by the hash function. The salt is
|
||||
decoded into a sequence of binary bytes and used as an additional
|
||||
|
2
ssh.h
2
ssh.h
@ -1242,7 +1242,7 @@ typedef struct ppk_save_parameters {
|
||||
* Parameters for fmt_version == 3
|
||||
*/
|
||||
Argon2Flavour argon2_flavour;
|
||||
uint32_t argon2_mem; /* in Kb */
|
||||
uint32_t argon2_mem; /* in Kbyte */
|
||||
bool argon2_passes_auto;
|
||||
union {
|
||||
uint32_t argon2_passes; /* if auto == false */
|
||||
|
@ -1932,7 +1932,7 @@ culpa qui officia deserunt mollit anim id est laborum.
|
||||
secret = b"secret"
|
||||
assoc = b"associated data"
|
||||
|
||||
# Smallest memory (8Kb) and parallelism (1) parameters the
|
||||
# Smallest memory (8Kbyte) and parallelism (1) parameters the
|
||||
# reference implementation will accept, but lots of passes
|
||||
self.assertEqualBin(
|
||||
argon2('i', 8, 16, 1, 24, pwd, salt, secret, assoc), unhex(
|
||||
|
@ -69,7 +69,7 @@ BEGIN
|
||||
LTEXT "Memory to use for password hash:", IDC_ARGON2_MEM_STATIC,
|
||||
5, 36, 115, 8
|
||||
EDITTEXT IDC_ARGON2_MEM, 120, 34, 40, 12
|
||||
LTEXT "Kb", IDC_ARGON2_MEM_STATIC2, 170, 36, 34, 8
|
||||
LTEXT "Kbyte", IDC_ARGON2_MEM_STATIC2, 170, 36, 34, 8
|
||||
LTEXT "Time to use for password hash:", IDC_ARGON2_TIME_STATIC,
|
||||
5, 50, 115, 8
|
||||
EDITTEXT IDC_ARGON2_TIME, 120, 48, 40, 12
|
||||
|
Loading…
Reference in New Issue
Block a user