From f89d7c1d7470f836106209dd2f6c04b4ff5b7545 Mon Sep 17 00:00:00 2001 From: darosior Date: Wed, 16 Oct 2019 16:47:28 +0200 Subject: [PATCH] hsm encryption: correct salt length --- lightningd/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index 7f0648dac..0ffc356d3 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -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);