]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - Convert GCM to new AEAD interface
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Jun 2015 05:54:23 +0000 (13:54 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 17 Jun 2015 07:35:08 +0000 (15:35 +0800)
commit6c48bd2261971beb52c47cd64cac41998a2b02b1
treea0dace2ec3fc5b310968eab62ab8e9dbeec93816
parentdcba29689e48ee2df9fa3e997b657616a0ad5dcd
crypto: caam - Convert GCM to new AEAD interface

This patch converts the caam GCM implementations to the new AEAD
interface.  This is compile-tested only.

Note that all IV generation for GCM algorithms have been removed.
The reason is that the current generation uses purely random IVs
which is not appropriate for counter-based algorithms where we
first and foremost require uniqueness.

Of course there is no reason why you couldn't implement seqiv or
seqniv within caam since all they do is xor the sequence number
with a salt, but since I can't test this on actual hardware I'll
leave it alone for now.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c