]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: speck - export common helpers
authorEric Biggers <ebiggers@google.com>
Wed, 14 Feb 2018 18:42:20 +0000 (10:42 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:54 +0000 (22:16 +0800)
commit2c4a27d7d49771930173b6ee436091105ca8efb7
tree5d93fa8434763f697ddde4f90833f0ab563ea5f2
parentb820d0ac46c853e8be8a81a789b80235c02e59ec
crypto: speck - export common helpers

Export the Speck constants and transform context and the ->setkey(),
->encrypt(), and ->decrypt() functions so that they can be reused by the
ARM NEON implementation of Speck-XTS.  The generic key expansion code
will be reused because it is not performance-critical and is not
vectorizable, while the generic encryption and decryption functions are
needed as fallbacks and for the XTS tweak encryption.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/speck.c
include/crypto/speck.h [new file with mode: 0644]