| 19 | } |
| 20 | |
| 21 | bool 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 | |
| 29 | void towire_privkey(u8 **pptr, const struct privkey *privkey) |
| 30 | { |
no outgoing calls