1. 30 May, 2019 1 commit
  2. 18 Apr, 2019 1 commit
    • Eric Biggers's avatar
      crypto: run initcalls for generic implementations earlier · c4741b23
      Eric Biggers authored
      
      Use subsys_initcall for registration of all templates and generic
      algorithm implementations, rather than module_init.  Then change
      cryptomgr to use arch_initcall, to place it before the subsys_initcalls.
      
      This is needed so that when both a generic and optimized implementation
      of an algorithm are built into the kernel (not loadable modules), the
      generic implementation is registered before the optimized one.
      Otherwise, the self-tests for the optimized implementation are unable to
      allocate the generic implementation for the new comparison fuzz tests.
      
      Note that on arm, a side effect of this change is that self-tests for
      generic implementations may run before the unaligned access handler has
      been installed.  So, unaligned accesses will crash the kernel.  This is
      arguably a good thing as it makes it easier to detect that type of bug.
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c4741b23
  3. 28 Sep, 2018 1 commit
  4. 22 Dec, 2017 1 commit
  5. 13 Sep, 2016 1 commit
  6. 18 Jul, 2016 1 commit
  7. 17 Aug, 2015 2 commits
  8. 14 Jul, 2015 1 commit
    • Herbert Xu's avatar
      crypto: echainiv - Fix encryption convention · 5499b1a7
      Herbert Xu authored
      
      This patch fixes a bug where we were incorrectly including the
      IV in the AD during encryption.  The IV must remain in the plain
      text for it to be encrypted.
      
      During decryption there is no need to copy the IV to dst because
      it's now part of the AD.
      
      This patch removes an unncessary check on authsize which would be
      performed by the underlying decrypt call.
      
      Finally this patch makes use of the type-safe init/exit functions.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      5499b1a7
  9. 22 Jun, 2015 1 commit
  10. 04 Jun, 2015 1 commit
  11. 28 May, 2015 3 commits
  12. 25 May, 2015 4 commits
  13. 22 May, 2015 1 commit
    • Herbert Xu's avatar
      crypto: echainiv - Add encrypted chain IV generator · a10f554f
      Herbert Xu authored
      
      This patch adds a new AEAD IV generator echainiv.  It is intended
      to replace the existing skcipher IV generator eseqiv.
      
      If the underlying AEAD algorithm is using the old AEAD interface,
      then echainiv will simply use its IV generator.
      
      Otherwise, echainiv will encrypt a counter just like eseqiv but
      it'll first xor it against a previously stored IV similar to
      chainiv.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      a10f554f