Samuel Pitoiset <[email protected]> writes:

[...]

> +void av_xtea_crypt(AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
> +                   uint8_t *iv, int decrypt)
> +{
> +    int i;
> +
> +    while (count > 0) {

[...]

> +        count -= 8;
> +    }
> +}

[...]

> +/**
> + * Encrypt or decrypt a buffer using a previously initialized context.
> + *
> + * @param x an AVXTEA context
> + * @param dst destination array, can be equal to src
> + * @param src source array, can be equal to dst
> + * @param count number of 8 byte blocks

The description of the count argument is wrong.

> + * @param iv initialization vector for CBC mode, if NULL then ECB will be 
> used
> + * @param decrypt 0 for encryption, 1 for decryption
> + */
> +void av_xtea_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
> +                   int count, uint8_t *iv, int decrypt);

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to