crypto: sha - Handle unaligned input data in generic sha256 and sha512.
authorDavid S. Miller <davem@davemloft.net>
Thu, 2 Oct 2014 06:52:37 +0000 (14:52 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 2 Oct 2014 06:52:37 +0000 (14:52 +0800)
commitbe34c4ef693ff5c10f55606dbd656ddf0b4a8340
treeaa8bb25553507ac3cd5454b4c627ab9a5120d3ce
parent5cfed7b3351ce33b60c4a1d02ffd712cdf4f49cd
crypto: sha - Handle unaligned input data in generic sha256 and sha512.

Like SHA1, use get_unaligned_be*() on the raw input data.

Reported-by: Bob Picco <bob.picco@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha256_generic.c
crypto/sha512_generic.c