Re: using crypto_digest() on non-kmalloc'd memory failures

From: David S. Miller
Date: Mon Oct 18 2004 - 15:27:06 EST


On Tue, 19 Oct 2004 00:05:41 +0400
Oleg Makarenko <mole@xxxxxxxxx> wrote:

> So to calculate digest on some static data I need to copy them to
> kmalloc'ed memory first, right?
>
> Can this copying be somehow avoided?

It is necessary to be able to kmap() the data item
passed into the crypto layer, so dynamically allocated
memory obtained via kmalloc() or similar must be used.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/