Lines Matching defs:state
147 struct otp_state *state)
162 state->algo = algo;
165 if (str_parse_int(s, &state->seq, &p) < 0 || !IS_LWS(*p))
170 state->seed[i++] = i_tolower(*p++);
171 state->seed[i] = 0;
232 int otp_parse_dbentry(const char *text, struct otp_state *state)
237 ret = otp_read_new_params(text, &end, state);
244 return otp_read_hex(end, &end, state->hash);
247 const char *otp_print_dbentry(const struct otp_state *state)
249 return t_strdup_printf("%s %d %s %s", digest_name(state->algo),
250 state->seq, state->seed,
251 binary_to_hex(state->hash, 8));