Helper to input data strong of codex32 into the checksum engine. */
| 146 | |
| 147 | /* Helper to input data strong of codex32 into the checksum engine. */ |
| 148 | static void input_data_str(u8 *generator, u8 *residue, const char *datastr, size_t len) |
| 149 | { |
| 150 | size_t i = 0; |
| 151 | |
| 152 | for (i = 0; i < strlen(datastr); i++) { |
| 153 | input_fe(generator, residue, bech32_charset_rev[(int)datastr[i]], len); |
| 154 | } |
| 155 | |
| 156 | return; |
| 157 | } |
| 158 | |
| 159 | static void input_own_target(const u8 *generator, u8 *residue, const u8 *target, size_t len) |
| 160 | { |
no test coverage detected