Lines Matching defs:ctx
62 static void test_tea(struct AVTEA *ctx, uint8_t *dst, const uint8_t *src,
66 av_tea_crypt(ctx, dst, src, len, iv, dir);
82 struct AVTEA *ctx;
89 ctx = av_tea_alloc();
90 if (!ctx)
94 av_tea_init(ctx, tea_test_key[i], 64);
96 test_tea(ctx, buf, tea_test_pt[i], tea_test_ct[i], 1, NULL, 0, "encryption");
97 test_tea(ctx, buf, tea_test_ct[i], tea_test_pt[i], 1, NULL, 1, "decryption");
101 av_tea_crypt(ctx, ct, src, 4, iv, 0);
105 test_tea(ctx, pl, ct, src, 4, iv, 1, "CBC decryption");
108 test_tea(ctx, ct, ct, src, 4, iv, 1, "CBC inplace decryption");
112 av_free(ctx);