Lines Matching defs:md5ctx
122 static void update_md5_strings(struct AVMD5 *md5ctx, ...)
126 va_start(vl, md5ctx);
131 av_md5_update(md5ctx, str, strlen(str));
148 struct AVMD5 *md5ctx;
160 md5ctx = av_md5_alloc();
161 if (!md5ctx)
164 av_md5_init(md5ctx);
165 update_md5_strings(md5ctx, username, ":", state->realm, ":", password, NULL);
166 av_md5_final(md5ctx, hash);
171 av_md5_init(md5ctx);
172 update_md5_strings(md5ctx, A1hash, ":", digest->nonce, ":", cnonce, NULL);
173 av_md5_final(md5ctx, hash);
177 av_free(md5ctx);
181 av_md5_init(md5ctx);
182 update_md5_strings(md5ctx, method, ":", uri, NULL);
183 av_md5_final(md5ctx, hash);
186 av_md5_init(md5ctx);
187 update_md5_strings(md5ctx, A1hash, ":", digest->nonce, NULL);
189 update_md5_strings(md5ctx, ":", nc, ":", cnonce, ":", digest->qop, NULL);
191 update_md5_strings(md5ctx, ":", A2hash, NULL);
192 av_md5_final(md5ctx, hash);
195 av_free(md5ctx);