Re: [PATCH v2] crypto: add key wrapping block chaining mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag, 27. April 2015, 16:26:07 schrieb Herbert Xu:

Hi Herbert,

>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.

Why do you think that will not work? I thought that the code works when the 
non-linear scatterlists are at least broken at an 8 byte boundary.
>
>Cheers,


Ciao
Stephan
--
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




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux