Lines Matching refs:ctx
42 void av_tea_init(AVTEA *ctx, const uint8_t key[16], int rounds)
47 ctx->key[i] = AV_RB32(key + (i << 2));
49 ctx->rounds = rounds;
52 static void tea_crypt_ecb(AVTEA *ctx, uint8_t *dst, const uint8_t *src,
56 int rounds = ctx->rounds;
58 k0 = ctx->key[0];
59 k1 = ctx->key[1];
60 k2 = ctx->key[2];
61 k3 = ctx->key[3];
95 void av_tea_crypt(AVTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
102 tea_crypt_ecb(ctx, dst, src, decrypt, iv);
112 tea_crypt_ecb(ctx, dst, dst, decrypt, NULL);
115 tea_crypt_ecb(ctx, dst, src, decrypt, NULL);