• David S. Miller's avatar
    crypto: skcipher - Add ablkcipher_walk interfaces · bf06099d
    David S. Miller authored
    These are akin to the blkcipher_walk helpers.
    
    The main differences in the async variant are:
    
    1) Only physical walking is supported.  We can't hold on to
       kmap mappings across the async operation to support virtual
       ablkcipher_walk operations anyways.
    
    2) Bounce buffers used for async more need to be persistent and
       freed at a later point in time when the async op completes.
       Therefore we maintain a list of writeback buffers and require
       that the ablkcipher_walk user call the 'complete' operation
       so we can copy the bounce buffers out to the real buffers and
       free up the bounce buffer chunks.
    
    These interfaces will be used by the new Niagara2 crypto driver.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    bf06099d
algapi.h 9.98 KB