1. 01 11月, 2016 1 次提交
  2. 22 9月, 2016 1 次提交
  3. 07 9月, 2016 1 次提交
  4. 31 8月, 2016 1 次提交
  5. 08 8月, 2016 2 次提交
    • H
      crypto: caam - defer aead_set_sh_desc in case of zero authsize · 2fdea258
      Horia Geantă 提交于
      To be able to generate shared descriptors for AEAD, the authentication size
      needs to be known. However, there is no imposed order of calling .setkey,
      .setauthsize callbacks.
      
      Thus, in case authentication size is not known at .setkey time, defer it
      until .setauthsize is called.
      
      The authsize != 0 check was incorrectly removed when converting the driver
      to the new AEAD interface.
      
      Cc: <stable@vger.kernel.org> # 4.3+
      Fixes: 479bcc7c ("crypto: caam - Convert authenc to new AEAD interface")
      Signed-off-by: NHoria Geantă <horia.geanta@nxp.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      2fdea258
    • H
      crypto: caam - fix echainiv(authenc) encrypt shared descriptor · 1d2d87e8
      Horia Geantă 提交于
      There are a few things missed by the conversion to the
      new AEAD interface:
      
      1 - echainiv(authenc) encrypt shared descriptor
      
      The shared descriptor is incorrect: due to the order of operations,
      at some point in time MATH3 register is being overwritten.
      
      2 - buffer used for echainiv(authenc) encrypt shared descriptor
      
      Encrypt and givencrypt shared descriptors (for AEAD ops) are mutually
      exclusive and thus use the same buffer in context state: sh_desc_enc.
      
      However, there's one place missed by s/sh_desc_givenc/sh_desc_enc,
      leading to errors when echainiv(authenc(...)) algorithms are used:
      DECO: desc idx 14: Header Error. Invalid length or parity, or
      certain other problems.
      
      While here, also fix a typo: dma_mapping_error() is checking
      for validity of sh_desc_givenc_dma instead of sh_desc_enc_dma.
      
      Cc: <stable@vger.kernel.org> # 4.3+
      Fixes: 479bcc7c ("crypto: caam - Convert authenc to new AEAD interface")
      Signed-off-by: NHoria Geantă <horia.geanta@nxp.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      1d2d87e8
  6. 08 10月, 2015 1 次提交
  7. 01 10月, 2015 1 次提交
  8. 24 8月, 2015 1 次提交
  9. 17 8月, 2015 1 次提交
  10. 10 8月, 2015 2 次提交
  11. 04 8月, 2015 1 次提交
  12. 31 7月, 2015 1 次提交
  13. 14 7月, 2015 1 次提交
  14. 19 6月, 2015 2 次提交
  15. 17 6月, 2015 1 次提交
    • H
      crypto: caam - Convert GCM to new AEAD interface · f2147b88
      Herbert Xu 提交于
      This patch converts the caam GCM implementations to the new AEAD
      interface.  This is compile-tested only.
      
      Note that all IV generation for GCM algorithms have been removed.
      The reason is that the current generation uses purely random IVs
      which is not appropriate for counter-based algorithms where we
      first and foremost require uniqueness.
      
      Of course there is no reason why you couldn't implement seqiv or
      seqniv within caam since all they do is xor the sequence number
      with a salt, but since I can't test this on actual hardware I'll
      leave it alone for now.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f2147b88
  16. 09 6月, 2015 1 次提交
    • H
      crypto: caam - Clamp AEAD SG list by input length · 70c3c8a9
      Herbert Xu 提交于
      Currently caam assumes that the SG list contains exactly the number
      of bytes required.  This assumption is incorrect.
      
      Up until now this has been harmless.  However with the new AEAD
      interface this now breaks as the AD SG list contains more bytes
      than just the AD.
      
      This patch fixes this by always clamping the AD SG list by the
      specified AD length.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      70c3c8a9
  17. 22 5月, 2015 1 次提交
  18. 13 5月, 2015 1 次提交
  19. 23 4月, 2015 1 次提交
  20. 26 1月, 2015 1 次提交
  21. 12 11月, 2014 1 次提交
  22. 06 11月, 2014 6 次提交
  23. 24 10月, 2014 2 次提交
  24. 23 7月, 2014 3 次提交
  25. 10 7月, 2014 1 次提交
  26. 25 6月, 2014 1 次提交
  27. 13 5月, 2014 1 次提交
  28. 08 5月, 2014 1 次提交
  29. 21 3月, 2014 1 次提交