diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-10 00:45:05 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-10 00:45:05 +0000 |
commit | 85f0a4508a84fc5f52b43910b7b4680639172735 (patch) | |
tree | 29b194e678787f2968ea84ddc73e4257e2d16be8 /src/key_derivation.h | |
parent | added usage output and --help to configure script (diff) |
added posibility to disable passphrase calculation
Diffstat (limited to 'src/key_derivation.h')
-rw-r--r-- | src/key_derivation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/key_derivation.h b/src/key_derivation.h index d045527..6cec9c9 100644 --- a/src/key_derivation.h +++ b/src/key_derivation.h @@ -70,8 +70,10 @@ struct key_derivation_struct { typedef struct key_derivation_struct key_derivation_t; int key_derivation_init(key_derivation_t* kd, const char* type, int8_t ld_kdr, const char* passphrase, u_int8_t* key, u_int32_t key_len, u_int8_t* salt, u_int32_t salt_len); +#ifndef NO_PASSPHRASE int key_derivation_generate_master_key(key_derivation_t* kd, const char* passphrase, u_int16_t key_length); int key_derivation_generate_master_salt(key_derivation_t* kd, const char* passphrase, u_int16_t salt_length); +#endif void key_derivation_close(key_derivation_t* kd); int key_derivation_generate(key_derivation_t* kd, satp_prf_label_t label, seq_nr_t seq_nr, u_int8_t* key, u_int32_t len); |