On Sun, Apr 26, 2015 at 12:08:20AM +0200, Stephan Mueller wrote: > > + /* > + * Point to the end of the scatterlists to walk them backwards. > + */ > + src_walk.offset += src_nbytes; > + dst_walk.offset += dst_nbytes; This doesn't work. Our primitives don't support walking backwards over an SG list and what you have simply doesn't work except for the trivial case of a completely linear buffer. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html