crypto: gcm - make GMAC work when dst and src are different
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 7 Apr 2013 13:43:41 +0000 (16:43 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Apr 2013 13:01:46 +0000 (21:01 +0800)
commit9489667d3e3d39ba452037585e48a89ce44ccbfe
tree130eaf3e4184eea42dc5f5ff409cf0b4f76fa76e
parentb149a30d87d165e1079163fdab6f14e48b2f57b2
crypto: gcm - make GMAC work when dst and src are different

The GMAC code assumes that dst==src, which causes problems when trying to add
rfc4543(gcm(aes)) test vectors.

So fix this code to work when source and destination buffer are different.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/gcm.c