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

Function secret_eq_consttime

bitcoin/privkey.c:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool secret_eq_consttime(const struct secret *a, const struct secret *b)
22{
23 u8 result = 0;
24 for (size_t i = 0; i < sizeof(a->data); i++)
25 result |= a->data[i] ^ b->data[i];
26 return result == 0;
27}
28
29void towire_privkey(u8 **pptr, const struct privkey *privkey)
30{

Callers 10

secret_eq_strFunction · 0.85
secret_eq_strFunction · 0.85
const_time_testFunction · 0.85
invoice_check_paymentFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
listoffers_doneFunction · 0.85
find_sent_by_secretFunction · 0.85

Calls

no outgoing calls

Tested by 5

secret_eq_strFunction · 0.68
secret_eq_strFunction · 0.68
const_time_testFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68