Re: [PATCH 2/3] sha512: reduce stack usage to safe number

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

 



On 1/16/12, David Laight <David.Laight@xxxxxxxxxx> wrote:
> Doesn't this badly overflow W[] ..
>
>> +#define SHA512_0_15(i, a, b, c, d, e, f, g, h) \
>> +	t1 = h + e1(e) + Ch(e, f, g) + sha512_K[i] + W[i];	\
> ...
>> +	for (i = 0; i < 16; i += 8) {
> ...
>> +		SHA512_0_15(i + 7, b, c, d, e, f, g, h, a);
>> +	}

No, why should it?
i can be only 0 and 8.
--
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