[PATCH 02/04] Add generic scatterwalker

Fruhwirth Clemens clemens at endorphin.org
Thu Nov 25 14:47:34 CET 2004


Add a generic scatterwalk code taking an arbitrary number of
scatterlists to walk through, a generalization of crypt(..), see
comments in scatterwalk.c.

The scratch buffer is allocated lazy. Therefore, I refactored the
scatterwalk_whichbuf a bit, making it a macro and splitting off a
scatterwalk_needscratch.

The rest is straight forward.

 scatterwalk.c |  107 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
 scatterwalk.h |   13 ++++++-
 2 files changed, 109 insertions(+), 11 deletions(-)

-- 
Fruhwirth Clemens <clemens at endorphin.org>  http://clemens.endorphin.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1to2.diff
Type: text/x-patch
Size: 4991 bytes
Desc: not available
Url : http://lists.logix.cz/pipermail/cryptoapi/attachments/20041125/d12e0a98/1to2.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logix.cz/pipermail/cryptoapi/attachments/20041125/d12e0a98/attachment.pgp


More information about the CryptoAPI mailing list