Lines Matching defs:len
95 static void print_data(const uint8_t *buf, int len)
98 for (i = 0; i < len; i++)
103 static int test_decrypt(struct SRTPContext *srtp, const uint8_t *in, int len,
106 memcpy(out, in, len);
107 if (!ff_srtp_decrypt(srtp, out, &len)) {
108 print_data(out, len);
109 return len;
118 int len;
122 len = ff_srtp_encrypt(&enc, data, in_len, buf, sizeof(buf));
123 if (!ff_srtp_decrypt(&dec, buf, &len)) {
124 if (len == in_len && !memcmp(buf, data, len))
143 int len;
145 len = test_decrypt(&srtp, rtp_aes128_80, sizeof(rtp_aes128_80), buf);
146 test_encrypt(buf, len, aes128_80_suite, test_key);
147 test_encrypt(buf, len, aes128_32_suite, test_key);
148 test_encrypt(buf, len, aes128_80_32_suite, test_key);
150 test_encrypt(buf, len, aes128_80_suite, test_key);
151 test_encrypt(buf, len, aes128_32_suite, test_key);
152 test_encrypt(buf, len, aes128_80_32_suite, test_key);