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

Function multiply_gf32

common/codex32.c:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static void multiply_gf32(uint8_t *x, uint8_t y)
105{
106 if (*x == 0 || y == 0) {
107 *x = 0;
108 } else {
109 *x = log_inv[(logi[*x] + logi[y]) % 31];
110 }
111 return;
112}
113
114/* Helper to input a single field element in the checksum engine. */
115static void input_fe(const u8 *generator, u8 *residue, uint8_t e, size_t len)

Callers 1

input_feFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected