S2KCOUNT default change
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2013-12-19 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* src/openpgp.c (S2KCOUNT): It's now 192, as the threat model
|
||||||
|
of Gnuk Token is different.
|
||||||
|
|
||||||
2013-12-19 Niibe Yutaka <gniibe@fsij.org>
|
2013-12-19 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* polarssl/library/bignum.c (mpi_montsqr): New.
|
* polarssl/library/bignum.c (mpi_montsqr): New.
|
||||||
|
|||||||
@@ -422,7 +422,14 @@ cmd_change_password (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define S2KCOUNT 65535
|
#ifndef S2KCOUNT
|
||||||
|
/*
|
||||||
|
* OpenPGP uses the value 65535 for the key on disk.
|
||||||
|
* Given the condition that the access to flash ROM is harder than disk,
|
||||||
|
* that is, the threat model is different, we chose the default value 192.
|
||||||
|
*/
|
||||||
|
#define S2KCOUNT 192
|
||||||
|
#endif
|
||||||
void
|
void
|
||||||
s2k (const unsigned char *salt, size_t slen,
|
s2k (const unsigned char *salt, size_t slen,
|
||||||
const unsigned char *input, size_t ilen, unsigned char output[32])
|
const unsigned char *input, size_t ilen, unsigned char output[32])
|
||||||
|
|||||||
Reference in New Issue
Block a user