Mercurial > projects > sencrypt
comparison sencrypt.c @ 15:00ca3ee8e310
Perform 500000 iterations with the PBKDF2 hash function when creating new files
This is still reasonably fast on modern hardware.
author | Guido Berhoerster <guido+sencrypt@berhoerster.name> |
---|---|
date | Sat, 07 Jul 2018 14:38:31 +0200 |
parents | 14e58decdf87 |
children | d9c4bdc004d2 |
comparison
equal
deleted
inserted
replaced
14:a779ed022a87 | 15:00ca3ee8e310 |
---|---|
43 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) | 43 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) |
44 | 44 |
45 #define EXIT_USAGE 2 | 45 #define EXIT_USAGE 2 |
46 | 46 |
47 #define SENCRYPT_FORMAT_VERSION 1 | 47 #define SENCRYPT_FORMAT_VERSION 1 |
48 #define PBKDF2_ITERATIONS 50000 | 48 #define PBKDF2_ITERATIONS 500000 |
49 #define SALT_LEN 16 | 49 #define SALT_LEN 16 |
50 #define BUFFER_SIZE (16 * 1024) | 50 #define BUFFER_SIZE (16 * 1024) |
51 #define MAX_PASSWORD_LEN 256 | 51 #define MAX_PASSWORD_LEN 256 |
52 | 52 |
53 enum { | 53 enum { |