mirror of
https://github.com/angt/secret
synced 2024-11-16 19:48:05 +01:00
Code cleanup
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
b83f26bb36
commit
617c3e2cd9
1 changed files with 4 additions and 7 deletions
11
secret.c
11
secret.c
|
@ -33,7 +33,6 @@ struct {
|
|||
uint8_t version;
|
||||
uint8_t master[hydro_pwhash_MASTERKEYBYTES];
|
||||
uint8_t opslimit[8];
|
||||
// reserved
|
||||
};
|
||||
uint8_t buf[S_ENTRYSIZE];
|
||||
} hdr;
|
||||
|
@ -217,12 +216,10 @@ s_open_secret(int use_tty)
|
|||
if (!len)
|
||||
s_exit(0);
|
||||
|
||||
int r = hydro_pwhash_deterministic(
|
||||
s.x.key, sizeof(s.x.key),
|
||||
(char *)pass, len,
|
||||
s.ctx_master, s.hdr.master,
|
||||
load64_le(s.hdr.opslimit), 0, 1);
|
||||
|
||||
int r = hydro_pwhash_deterministic(s.x.key, sizeof(s.x.key),
|
||||
(char *)pass, len,
|
||||
s.ctx_master, s.hdr.master,
|
||||
load64_le(s.hdr.opslimit), 0, 1);
|
||||
hydro_memzero(pass, sizeof(pass));
|
||||
|
||||
if (r)
|
||||
|
|
Loading…
Reference in a new issue