Re: [PATCH] crypto: Fix byte counter overflow in SHA-512

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

 



On Fri, Mar 16, 2012 at 08:26:28PM +0000, Kent Yoder wrote:
> The current code only increments the upper 64 bits of the SHA-512 byte
> counter when the number of bytes hashed happens to hit 2^64 exactly.
> 
> This patch increments the upper 64 bits whenever the lower 64 bits
> overflows.
> 
> Signed-off-by: Kent Yoder <key@xxxxxxxxxxxxxxxxxx>

Good catch.  Patch applied to crypto and stable.  Thanks a lot!
-- 
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


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

  Powered by Linux