diff options
author | Mattias Andrée <maandree@kth.se> | 2021-02-22 15:06:08 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-02-22 15:06:08 +0100 |
commit | 04a2206993e77538f14552ec5a25cfd7543060f3 (patch) | |
tree | cce3a2e3a9c8dcbd48bce4bc7289a7b28d146c8b /settings.h | |
parent | remove dist (diff) | |
download | file2key-04a2206993e77538f14552ec5a25cfd7543060f3.tar.gz file2key-04a2206993e77538f14552ec5a25cfd7543060f3.tar.bz2 file2key-04a2206993e77538f14552ec5a25cfd7543060f3.tar.xz |
change license + misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | settings.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/settings.h b/settings.h new file mode 100644 index 0000000..2147e73 --- /dev/null +++ b/settings.h @@ -0,0 +1,34 @@ +/* See LICENSE file for copyright and license details. */ + +/** + * Random string created with `dd if=/dev/random bs=1024 count=1 | tr -d -c a-zA-Z0-9` + */ +#define KEY_PEPPER "5EbppWrYxMuBKQmbDz8rOCVCONsSLas74qrjMLTiJqsYWcTePNeshVXcmAWGkh88VeFh" + +/** + * The rate parameter for the Keccak sponge when hashing master passphrase + */ +#ifndef PASSPHRASE_KECCAK_RATE +# define PASSPHRASE_KECCAK_RATE 576 +#endif + +/** + * The capacity parameter for the Keccak sponge when hashing master passphrase + */ +#ifndef PASSPHRASE_KECCAK_CAPACITY +# define PASSPHRASE_KECCAK_CAPACITY 1024 +#endif + +/** + * The output parameter for the Keccak sponge when hashing master passphrase + */ +#ifndef PASSPHRASE_KECCAK_OUTPUT +# define PASSPHRASE_KECCAK_OUTPUT 32 +#endif + +/** + * The number of times to squeeze the master passphrase + */ +#ifndef PASSPHRASE_KECCAK_SQUEEZES +# define PASSPHRASE_KECCAK_SQUEEZES 10000 +#endif |