Lines Matching refs:hmac
19 #include "libavutil/hmac.c"
24 static void test(AVHMAC *hmac, const uint8_t *key, int keylen,
35 out = av_hmac_calc(hmac, data, datalen, key, keylen, buf, sizeof(buf));
44 AVHMAC *hmac;
60 hmac = av_hmac_alloc(i);
61 if (!hmac)
64 test(hmac, key1, hmac->hashlen, data1, sizeof(data1));
65 test(hmac, key2, sizeof(key2), data2, sizeof(data2));
66 test(hmac, key3, hmac->hashlen, data3, sizeof(data3));
67 test(hmac, key3, 80, data4, sizeof(data4));
68 test(hmac, key3, 80, data5, sizeof(data5));
69 av_hmac_free(hmac);
74 hmac = av_hmac_alloc(i);
75 if (!hmac)
78 test(hmac, key1, sizeof(key1), data1, sizeof(data1));
79 test(hmac, key2, sizeof(key2), data2, sizeof(data2));
80 test(hmac, key3, 20, data3, sizeof(data3));
81 test(hmac, key3, sizeof(key3), data4, sizeof(data4));
82 test(hmac, key3, sizeof(key3), data6, sizeof(data6));
83 av_hmac_free(hmac);