crypto: poly1305 - move core routines into a separate library
authorArd Biesheuvel <ardb@kernel.org>
Fri, 8 Nov 2019 12:22:19 +0000 (13:22 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:41 +0000 (09:02 +0800)
commit48ea8c6ebc96bc0990e12ee1c43d0832c23576bb
tree2344893a15adb14df257f4375a306353cf0dfdab
parent22cf705360707ced15f9fe5423938f313c7df536
crypto: poly1305 - move core routines into a separate library

Move the core Poly1305 routines shared between the generic Poly1305
shash driver and the Adiantum and NHPoly1305 drivers into a separate
library so that using just this pieces does not pull in the crypto
API pieces of the generic Poly1305 routine.

In a subsequent patch, we will augment this generic library with
init/update/final routines so that Poyl1305 algorithm can be used
directly without the need for using the crypto API's shash abstraction.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/poly1305_glue.c
crypto/Kconfig
crypto/adiantum.c
crypto/nhpoly1305.c
crypto/poly1305_generic.c
include/crypto/internal/poly1305.h [new file with mode: 0644]
include/crypto/poly1305.h
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/poly1305.c [new file with mode: 0644]