Re: [PATCH 08/21] KEYS: Add signature verification facility [ver #3]

From: Kasatkin, Dmitry
Date: Wed Jan 18 2012 - 10:20:41 EST


On Wed, Jan 18, 2012 at 5:13 PM, David Howells <dhowells@xxxxxxxxxx> wrote:
> Kasatkin, Dmitry <dmitry.kasatkin@xxxxxxxxx> wrote:
>
>> Yes. it is clear...
>> Would it be possible to have pass data (uncompleted) hash?
>
> Yes, provided it's not finalised. ÂAlso, with the current code it would have
> to be a shash, but I think I should be able to support the passing in of an
> async hash by exporting the state from that and importing the state into a
> shash using the crypto layer export and import functions.
>

I thought about export/import.
But I think export/Import is hash driver implementation specific...
Cannot use ahash state for shash...

As you said in repose to later patch, you could provide some function to
build a final metadata buffer out of signature to finalize the hash...

- Dmitry


> David
--
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/