1. 11 Sep, 2020 22 commits
  2. 04 Sep, 2020 14 commits
  3. 28 Aug, 2020 4 commits
    • Herbert Xu's avatar
      crypto: stm32 - Fix sparse warnings · bbb28326
      Herbert Xu authored
      This patch fixes most of the sparse endianness warnings in stm32.
      The patch itself doesn't change anything apart from markings,
      but there is some questionable code in stm32_cryp_check_ctr_counter.
      
      That function operates on the counters as if they're in CPU order,
      however, they're then written out as big-endian.  This looks like
      a genuine bug.  Therefore I've left that warning alone until
      someone can confirm that this really does work as intended on
      little-endian.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      bbb28326
    • dinghao.liu@zju.edu.cn's avatar
      crypto: ccree - fix runtime PM imbalance on error · b7b57a56
      dinghao.liu@zju.edu.cn authored
      pm_runtime_get_sync() increments the runtime PM usage counter
      even when it returns an error code. However, users of cc_pm_get(),
      a direct wrapper of pm_runtime_get_sync(), assume that PM usage
      counter will not change on error. Thus a pairing decrement is needed
      on the error handling path to keep the counter balanced.
      
      Fixes: 8c7849a3 ("crypto: ccree - simplify Runtime PM handling")
      Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      b7b57a56
    • Herbert Xu's avatar
      crypto: mediatek - Fix endianness bugs and sparse warnings · 39340cf9
      Herbert Xu authored
      This patch squashes all the sparse warnings in mediatek, some of
      which appear to be genuine bugs.  In particular, previously on
      BE the keys and IVs all get 32-bit swabbed which can't be right
      because they don't get swabbed on LE.  I presume LE is the one
      that actually works.
      
      Another funky thing is that the GHASH key gets swabbed on LE.
      This makes no sense but I'm presuming someone actually tested
      this on LE so I'm preserving the swabbing.  Someone needs to
      test this though as it is entirely possible that GCM is the
      only thing that worked on BE but not LE.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      39340cf9
    • Herbert Xu's avatar
      crypto: hifn_795x - Remove 64-bit build-time check · 9fae1f05
      Herbert Xu authored
      As we're already using Kconfig to disable 64-bit builds for this
      driver, there is no point in doing it again in the source code.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      9fae1f05