]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51dedd4dd357842f0e14451fac6a8c847741e3ef
tree42ec2aaaf31f4fa619aaf46fa98536c4fcbb2630
parent986bdda73ba9b9114024d02e3ebde72965cf2115
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