1. 22 12月, 2015 1 次提交
  2. 27 11月, 2015 1 次提交
  3. 23 11月, 2015 1 次提交
    • A
      crypto: atmel: fix bogus select · 56b85c9d
      Arnd Bergmann 提交于
      The Atmel at91 crypto driver unconditionally selects AT_HDMAC,
      which results in a Kconfig warning if that driver is not enabled:
      
      warning: (CRYPTO_DEV_ATMEL_AES) selects AT_HDMAC which has unmet direct dependencies (DMADEVICES && ARCH_AT91)
      
      The crypto driver itself does not actually have a dependency
      on a particular dma engine, other than this being the one that
      is used in at91.
      
      Removing the 'select' gets rid of the warning, but can cause
      the driver to be unusable if the HDMAC is not enabled at the
      same time. To work around that, this patch clarifies the runtime
      dependency to be 'AT_HDMAC || AT_XDMAC', but adds an alternative
      for COMPILE_TEST, which lets the driver get build on all systems.
      
      The ARCH_AT91 dependency is implied by AT_XDMAC || AT_HDMAC now
      and no longer needs to be listed separately.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      56b85c9d
  4. 14 10月, 2015 1 次提交
    • A
      crypto: mxs-dcp - mxs-dcp is an stmp device · dc97fa02
      Arnd Bergmann 提交于
      The mxs-dcp driver relies on the stmp_reset_block() helper function, which
      is provided by CONFIG_STMP_DEVICE. This symbol is always set on MXS,
      but the driver can now also be built for MXC (i.MX6), which results
      in a built error if no other driver selects STMP_DEVICE:
      
      drivers/built-in.o: In function `mxs_dcp_probe':
      vf610-ocotp.c:(.text+0x3df302): undefined reference to `stmp_reset_block'
      
      This adds the 'select', like all other stmp drivers have it.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: a2712e6c ("crypto: mxs-dcp - Allow MXS_DCP to be used on MX6SL")
      Acked-by: NMarek Vasut <marex@denx.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      dc97fa02
  5. 08 10月, 2015 1 次提交
  6. 21 9月, 2015 1 次提交
  7. 10 9月, 2015 1 次提交
  8. 20 7月, 2015 1 次提交
  9. 22 6月, 2015 1 次提交
  10. 19 6月, 2015 3 次提交
    • B
      crypto: marvell/cesa - add TDMA support · db509a45
      Boris BREZILLON 提交于
      The CESA IP supports CPU offload through a dedicated DMA engine (TDMA)
      which can control the crypto block.
      When you use this mode, all the required data (operation metadata and
      payload data) are transferred using DMA, and the results are retrieved
      through DMA when possible (hash results are not retrieved through DMA yet),
      thus reducing the involvement of the CPU and providing better performances
      in most cases (for small requests, the cost of DMA preparation might
      exceed the performance gain).
      
      Note that some CESA IPs do not embed this dedicated DMA, hence the
      activation of this feature on a per platform basis.
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: NArnaud Ebalard <arno@natisbad.org>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      db509a45
    • B
      crypto: marvell/cesa - add a new driver for Marvell's CESA · f63601fd
      Boris BREZILLON 提交于
      The existing mv_cesa driver supports some features of the CESA IP but is
      quite limited, and reworking it to support new features (like involving the
      TDMA engine to offload the CPU) is almost impossible.
      This driver has been rewritten from scratch to take those new features into
      account.
      
      This commit introduce the base infrastructure allowing us to add support
      for DMA optimization.
      It also includes support for one hash (SHA1) and one cipher (AES)
      algorithm, and enable those features on the Armada 370 SoC.
      
      Other algorithms and platforms will be added later on.
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: NArnaud Ebalard <arno@natisbad.org>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f63601fd
    • B
      crypto: mv_cesa - use gen_pool to reserve the SRAM memory region · 51b44fc8
      Boris BREZILLON 提交于
      The mv_cesa driver currently expects the SRAM memory region to be passed
      as a platform device resource.
      
      This approach implies two drawbacks:
      - the DT representation is wrong
      - the only one that can access the SRAM is the crypto engine
      
      The last point is particularly annoying in some cases: for example on
      armada 370, a small region of the crypto SRAM is used to implement the
      cpuidle, which means you would not be able to enable both cpuidle and the
      CESA driver.
      
      To address that problem, we explicitly define the SRAM device in the DT
      and then reference the sram node from the crypto engine node.
      
      Also note that the old way of retrieving the SRAM memory region is still
      supported, or in other words, backward compatibility is preserved.
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      51b44fc8
  11. 18 6月, 2015 1 次提交
    • H
      crypto: drivers - Fix Kconfig selects · 596103cf
      Herbert Xu 提交于
      This patch fixes a number of problems in crypto driver Kconfig
      entries:
      
      1. Select BLKCIPHER instead of BLKCIPHER2.  The latter is internal
      and should not be used outside of the crypto API itself.
      2. Do not select ALGAPI unless you use a legacy type like
      CRYPTO_ALG_TYPE_CIPHER.
      3. Select the algorithm type that you are implementing, e.g., AEAD.
      4. Do not select generic C code such as CBC/ECB unless you use them
      as a fallback.
      5. Remove default n since that is the default default.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      596103cf
  12. 16 6月, 2015 1 次提交
  13. 11 5月, 2015 1 次提交
  14. 24 4月, 2015 1 次提交
  15. 21 4月, 2015 1 次提交
  16. 23 3月, 2015 1 次提交
  17. 16 3月, 2015 1 次提交
  18. 28 2月, 2015 1 次提交
  19. 27 2月, 2015 2 次提交
  20. 23 7月, 2014 1 次提交
  21. 08 7月, 2014 1 次提交
  22. 03 7月, 2014 1 次提交
  23. 20 6月, 2014 2 次提交
  24. 11 6月, 2014 1 次提交
  25. 08 5月, 2014 1 次提交
  26. 27 2月, 2014 2 次提交
  27. 05 1月, 2014 2 次提交
    • M
      crypto: mxs - Add Freescale MXS DCP driver · 15b59e7c
      Marek Vasut 提交于
      Add support for the MXS DCP block. The driver currently supports
      SHA-1/SHA-256 hashing and AES-128 CBC/ECB modes. The non-standard
      CRC32 is not yet supported.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: devicetree@vger.kernel.org
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      15b59e7c
    • M
      crypto: mxs - Remove the old DCP driver · c493c044
      Marek Vasut 提交于
      Remove the old DCP driver as it had multiple severe issues. The driver
      will be replaced by a more robust implementation. Here is a short list
      of problems with this driver:
      
      1) It only supports AES_CBC
      2) The driver was apparently never ran behind anyone working with MXS. ie.:
         -> Restarting the DCP block is not done via mxs_reset_block()
         -> The DT name is not "fsl,dcp" or "fsl,mxs-dcp" as other MXS drivers
      3) Introduces new ad-hoc IOCTLs
      4) The IRQ handler can't use usual completion() in the driver because that'd
         trigger "scheduling while atomic" oops, yes?
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      c493c044
  28. 20 12月, 2013 1 次提交
  29. 05 12月, 2013 1 次提交
  30. 21 8月, 2013 1 次提交
  31. 01 8月, 2013 1 次提交
  32. 28 5月, 2013 1 次提交
    • T
      crypto: dcp - Added support for Freescale's DCP co-processor · 519d8b1a
      Tobias Rauter 提交于
      This patch enables the DCP crypto functionality on imx28.
      Currently, only aes-128-cbc is supported.
      Moreover, the dcpboot misc-device, which is used by Freescale's
      SDK tools and uses a non-software-readable OTP-key, is added.
      
      Changes of v2:
      - ring buffer for hardware-descriptors
      - use of ablkcipher walk
      - OTP key encryption/decryption via misc-device
        (compatible to Freescale-SDK)
      - overall cleanup
      
      The DCP is also capable of sha1/sha256 but I won't be able to add
      that anytime soon.
      Tested with built-in runtime-self-test, tcrypt and openssl via
      cryptodev 1.6 on imx28-evk and a custom built imx28-board.
      Signed-off-by: NTobias Rauter <tobias.rauter@gmail.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      519d8b1a
  33. 24 5月, 2013 1 次提交
  34. 21 3月, 2013 1 次提交