Lines Matching defs:ctx
63 static void test_xtea(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
68 crypt(ctx, dst, src, len, iv, dir);
89 AVXTEA *ctx = av_xtea_alloc();
90 if (!ctx)
94 av_xtea_init(ctx, xtea_test_key[i]);
96 test_xtea(ctx, buf, xtea_test_pt[i], xtea_test_ct[i], 1, NULL, 0, "encryption", av_xtea_crypt);
97 test_xtea(ctx, buf, xtea_test_ct[i], xtea_test_pt[i], 1, NULL, 1, "decryption", av_xtea_crypt);
101 av_xtea_le_init(ctx, buf);
106 test_xtea(ctx, buf, pl, ct, 1, NULL, 0, "encryption", av_xtea_le_crypt);
107 test_xtea(ctx, buf, ct, pl, 1, NULL, 1, "decryption", av_xtea_le_crypt);
111 av_xtea_crypt(ctx, ct, src, 4, iv, 0);
115 test_xtea(ctx, pl, ct, src, 4, iv, 1, "CBC decryption", av_xtea_crypt);
118 test_xtea(ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption", av_xtea_crypt);
122 av_free(ctx);