Hi Patrick.
On Wed, Feb 13, 2008 at 05:44:42PM +0300, Evgeniy Polyakov ([EMAIL PROTECTED])
wrote:
> Any chance you can apply following patch and check output for correct
> and broken cases (it will produce 2 or 3 debug strings for each crypto
> operation)?
>
> diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
> index dfbf24c..b8b088d 100644
> --- a/drivers/crypto/hifn_795x.c
> +++ b/drivers/crypto/hifn_795x.c
> @@ -1558,6 +1558,23 @@ err_out_unmap:
> return err;
> }
>
> +static void hifn_dump_req(struct ablkcipher_request *req, const char *prefix)
> +{
> + int nbytes = (signed)req->nbytes;
> + struct scatterlist *src, *dst;
> + int idx = 0;
> +
> + printk("%s: nbytes: %u, ", prefix, nbytes);
> + while (nbytes > 0) {
> + src = &req->src[idx];
> + dst = &req->dst[idx];
> +
> + printk("%u/%u ", src->length, dst->length);
> + nbytes -= src->length;
Ouch, forgot idx++;
--
Evgeniy Polyakov
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html