OSDN Git Service

crypto: caam/qi - add GCM support
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 29 Jan 2018 08:38:37 +0000 (10:38 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Feb 2018 15:26:55 +0000 (23:26 +0800)
commitd3e41b50b46b5ee26793c9c28ccc2d3e45f4f9cc
treee07aae61f0dd418d734062b2b780ea91ace5f98b
parent87ec3a0b1c2de80ffca532abb5d7acd18dc905e3
crypto: caam/qi - add GCM support

Add support for AES working in Galois Counter Mode.
The following algorithms are added:
gcm(aes)
rfc4106(gcm(aes))
rfc4543(gcm(aes))

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: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi.c