MCPcopy Create free account
hub / github.com/ElementsProject/lightning / discard_key

Function discard_key

common/hsm_encryption.c:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void discard_key(struct secret *key TAKES)
96{
97 /* sodium_munlock() also zeroes the memory. */
98 sodium_munlock(key->data, sizeof(key->data));
99 if (taken(key))
100 tal_free(key);
101}
102
103/* Read a line from stdin, do not take the newline character into account. */
104static bool getline_stdin_pass(char **passwd, size_t *passwd_size)

Callers 1

init_hsmFunction · 0.50

Calls 2

takenFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected