crypto: poly1305 - expose init/update/final library interface
authorArd Biesheuvel <ardb@kernel.org>
Fri, 8 Nov 2019 12:22:21 +0000 (13:22 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:41 +0000 (09:02 +0800)
commita1d93064094cc5e24d64e35cf093e7191d0c9344
tree9ad12ad3cad4006d7f348dec1e69d308163e7a66
parentad8f5b88383ea685f2b8df2a12ee3e08089a1287
crypto: poly1305 - expose init/update/final library interface

Expose the existing generic Poly1305 code via a init/update/final
library interface so that callers are not required to go through
the crypto API's shash abstraction to access it. At the same time,
make some preparations so that the library implementation can be
superseded by an accelerated arch-specific version in the future.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/poly1305_generic.c
include/crypto/poly1305.h
lib/crypto/Kconfig
lib/crypto/poly1305.c