crypto: caam - add support for gcm(aes)
authorTudor Ambarus <tudor.ambarus@freescale.com>
Thu, 23 Oct 2014 13:11:23 +0000 (16:11 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:52:28 +0000 (22:52 +0800)
commit3ef8d945d0dafd272e77c01099bc4975c5297a5a
tree42ec2aaaf31f4fa619aaf46fa98536c4fcbb2630
parent61daf055ea42342dea1f7006833bc7cde20eeb34
crypto: caam - add support for gcm(aes)

Add support for AES working in Galois Counter Mode.

There is a limitation related to IV size, similar to the one present in
SW implementation (crypto/gcm.c):
The only IV size allowed is 12 bytes. It will be padded by HW to the right
with 0x0000_0001 (up to 16 bytes - AES block size), according to the GCM
specification.

Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com>
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c