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>
Showing
- arch/x86/crypto/poly1305_glue.c 1 addition, 1 deletionarch/x86/crypto/poly1305_glue.c
- crypto/Kconfig 3 additions, 2 deletionscrypto/Kconfig
- crypto/adiantum.c 3 additions, 2 deletionscrypto/adiantum.c
- crypto/nhpoly1305.c 2 additions, 1 deletioncrypto/nhpoly1305.c
- crypto/poly1305_generic.c 8 additions, 187 deletionscrypto/poly1305_generic.c
- include/crypto/internal/poly1305.h 67 additions, 0 deletionsinclude/crypto/internal/poly1305.h
- include/crypto/poly1305.h 0 additions, 23 deletionsinclude/crypto/poly1305.h
- lib/crypto/Kconfig 3 additions, 0 deletionslib/crypto/Kconfig
- lib/crypto/Makefile 3 additions, 0 deletionslib/crypto/Makefile
- lib/crypto/poly1305.c 158 additions, 0 deletionslib/crypto/poly1305.c
Please register or sign in to comment