mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
hsm encryption: correct salt length
This commit is contained in:
parent
3c038e4171
commit
f89d7c1d74
@ -379,7 +379,7 @@ static char *opt_set_hsm_password(struct lightningd *ld)
|
||||
struct termios current_term, temp_term;
|
||||
char *passwd = NULL;
|
||||
size_t passwd_size = 0;
|
||||
u8 salt[11] = "c-lightning";
|
||||
u8 salt[16] = "c-lightning\0\0\0\0\0";
|
||||
ld->encrypted_hsm = true;
|
||||
|
||||
ld->config.keypass = tal(NULL, struct secret);
|
||||
|
Loading…
Reference in New Issue
Block a user