Lines Matching refs:list
29 struct hash_format_list *list, **pos;
83 struct hash_format_list *list;
91 list = p_new(format->pool, struct hash_format_list, 1);
92 list->encoding = HASH_ENCODING_HEX;
93 *format->pos = list;
94 format->pos = &list->next;
97 list->encoding = HASH_ENCODING_BASE64;
100 list->encoding = HASH_ENCODING_HEX_SHORT;
107 if (hash_format_parse(str, &i, &list->method,
108 &list->bits, error_r) < 0)
110 list->context = p_malloc(format->pool,
111 list->method->context_size);
112 list->method->init(list->context);
128 format->pos = &format->list;
147 struct hash_format_list *list;
149 for (list = format->list; list != NULL; list = list->next)
150 list->method->loop(list->context, data, size);
155 struct hash_format_list *list;
157 for (list = format->list; list != NULL; list = list->next) {
158 memset(list->context, 0, list->method->context_size);
159 list->method->init(list->context);
164 hash_format_digest(string_t *dest, const struct hash_format_list *list,
167 unsigned int i, orig_len, size = list->bits / 8;
169 i_assert(list->bits % 8 == 0);
171 switch (list->encoding) {
199 struct hash_format_list *list;
203 for (list = format->list; list != NULL; list = list->next) {
204 if (max_digest_size < list->method->digest_size)
205 max_digest_size = list->method->digest_size;
210 list = format->list;
218 i_assert(list != NULL);
219 list->method->result(list->context, format->digest);
220 hash_format_digest(dest, list, format->digest);
221 list = list->next;