1. 30 4月, 2020 2 次提交
  2. 16 4月, 2020 1 次提交
  3. 08 4月, 2020 2 次提交
  4. 05 2月, 2020 1 次提交
  5. 16 1月, 2020 1 次提交
  6. 22 11月, 2019 1 次提交
  7. 17 11月, 2019 13 次提交
  8. 01 11月, 2019 2 次提交
    • E
      crypto: skcipher - rename the crypto_blkcipher module and kconfig option · b95bba5d
      Eric Biggers 提交于
      Now that the blkcipher algorithm type has been removed in favor of
      skcipher, rename the crypto_blkcipher kernel module to crypto_skcipher,
      and rename the config options accordingly:
      
      	CONFIG_CRYPTO_BLKCIPHER => CONFIG_CRYPTO_SKCIPHER
      	CONFIG_CRYPTO_BLKCIPHER2 => CONFIG_CRYPTO_SKCIPHER2
      Signed-off-by: NEric Biggers <ebiggers@google.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      b95bba5d
    • D
      crypto: blake2b - add blake2b generic implementation · 91d68933
      David Sterba 提交于
      The patch brings support of several BLAKE2 variants (2b with various
      digest lengths).  The keyed digest is supported, using tfm->setkey call.
      The in-tree user will be btrfs (for checksumming), we're going to use
      the BLAKE2b-256 variant.
      
      The code is reference implementation taken from the official sources and
      modified in terms of kernel coding style (whitespace, comments, uintXX_t
      -> uXX types, removed unused prototypes and #ifdefs, removed testing
      code, changed secure_zero_memory -> memzero_explicit, used own helpers
      for unaligned reads/writes and rotations).
      
      Further changes removed sanity checks of key length or output size,
      these values are verified in the crypto API callbacks or hardcoded in
      shash_alg and not exposed to users.
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      91d68933
  9. 25 10月, 2019 1 次提交
    • E
      crypto: powerpc - convert SPE AES algorithms to skcipher API · 7f725f41
      Eric Biggers 提交于
      Convert the glue code for the PowerPC SPE implementations of AES-ECB,
      AES-CBC, AES-CTR, and AES-XTS from the deprecated "blkcipher" API to the
      "skcipher" API.  This is needed in order for the blkcipher API to be
      removed.
      
      Tested with:
      
      	export ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-
      	make mpc85xx_defconfig
      	cat >> .config << EOF
      	# CONFIG_MODULES is not set
      	# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
      	CONFIG_DEBUG_KERNEL=y
      	CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y
      	CONFIG_CRYPTO_AES=y
      	CONFIG_CRYPTO_CBC=y
      	CONFIG_CRYPTO_CTR=y
      	CONFIG_CRYPTO_ECB=y
      	CONFIG_CRYPTO_XTS=y
      	CONFIG_CRYPTO_AES_PPC_SPE=y
      	EOF
      	make olddefconfig
      	make -j32
      	qemu-system-ppc -M mpc8544ds -cpu e500 -nographic \
      		-kernel arch/powerpc/boot/zImage \
      		-append cryptomgr.fuzz_iterations=1000
      
      Note that xts-ppc-spe still fails the comparison tests due to the lack
      of ciphertext stealing support.  This is not addressed by this patch.
      
      This patch also cleans up the code by making ->encrypt() and ->decrypt()
      call a common function for each of ECB, CBC, and XTS, and by using a
      clearer way to compute the length to process at each step.
      Signed-off-by: NEric Biggers <ebiggers@google.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      7f725f41
  10. 23 10月, 2019 3 次提交
  11. 10 10月, 2019 1 次提交
  12. 04 9月, 2019 1 次提交
  13. 22 8月, 2019 3 次提交
  14. 15 8月, 2019 1 次提交
  15. 02 8月, 2019 1 次提交
  16. 27 7月, 2019 1 次提交
  17. 26 7月, 2019 5 次提交