]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ab9d62d7c3d7cb49cba6f8739e0eb7ffe1fd568
tree9ad12ad3cad4006d7f348dec1e69d308163e7a66
parent3ccba81d9929b5191f264b9ecf72fa952f7f42f2
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