Lines Matching refs:hmac
24 #include "libavutil/hmac.h"
36 if (s->hmac)
37 av_hmac_free(s->hmac);
38 s->hmac = NULL;
93 s->hmac = av_hmac_alloc(AV_HMAC_SHA1);
94 if (!s->aes || !s->hmac)
128 uint8_t iv[16] = { 0 }, hmac[20];
147 av_hmac_init(s->hmac, rtcp ? s->rtcp_auth : s->rtp_auth, sizeof(s->rtp_auth));
149 av_hmac_update(s->hmac, buf, len - hmac_size);
175 av_hmac_update(s->hmac, rocbuf, 4);
178 av_hmac_final(s->hmac, hmac, sizeof(hmac));
179 if (memcmp(hmac, buf + len - hmac_size, hmac_size)) {
241 uint8_t iv[16] = { 0 }, hmac[20];
313 av_hmac_init(s->hmac, rtcp ? s->rtcp_auth : s->rtp_auth, sizeof(s->rtp_auth));
314 av_hmac_update(s->hmac, out, buf + len - out);
318 av_hmac_update(s->hmac, rocbuf, 4);
320 av_hmac_final(s->hmac, hmac, sizeof(hmac));
322 memcpy(buf + len, hmac, hmac_size);