1. 22 May, 2015 5 commits
    • Herbert Xu's avatar
      crypto: aead - Add new interface with single SG list · 996d98d8
      Herbert Xu authored
      The primary user of AEAD, IPsec includes the IV in the AD in
      most cases, except where it is implicitly authenticated by the
      underlying algorithm.
      
      The way it is currently implemented is a hack because we pass
      the data in piecemeal and the underlying algorithms try to stitch
      them back up into one piece.
      
      This is why this patch is adding a new interface that allows a
      single SG list to be passed in that contains everything so the
      algorithm implementors do not have to stitch.
      
      The new interface accepts a single source SG list and a single
      destination SG list.  Both must be laid out as follows:
      
      	AD, skipped data, plain/cipher text, ICV
      
      The ICV is not present from the source during encryption and from
      the destination during decryption.
      
      For the top-level IPsec AEAD algorithm the plain/cipher text will
      contain the generated (or received) IV.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      996d98d8
    • Herbert Xu's avatar
      crypto: scatterwalk - Add scatterwalk_ffwd helper · fc42bcba
      Herbert Xu authored
      This patch adds the scatterwalk_ffwd helper which can create an
      SG list that starts in the middle of an existing SG list.  The
      new list may either be part of the existing list or be a chain
      that latches onto part of the existing list.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      fc42bcba
    • Herbert Xu's avatar
      crypto: pcrypt - Use crypto_grab_aead · 66d948e7
      Herbert Xu authored
      As AEAD has switched over to using frontend types, the function
      crypto_init_spawn must not be used since it does not specify a
      frontend type.  Otherwise it leads to a crash when the spawn is
      used.
      
      This patch fixes it by switching over to crypto_grab_aead instead.
      
      Fixes: 5d1d65f8 ("crypto: aead - Convert top level interface to new style")
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      66d948e7
    • Herbert Xu's avatar
      crypto: cryptd - Use crypto_grab_aead · 9b8c456e
      Herbert Xu authored
      As AEAD has switched over to using frontend types, the function
      crypto_init_spawn must not be used since it does not specify a
      frontend type.  Otherwise it leads to a crash when the spawn is
      used.
      
      This patch fixes it by switching over to crypto_grab_aead instead.
      
      Fixes: 5d1d65f8 ("crypto: aead - Convert top level interface to new style")
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      9b8c456e
    • Stephan Mueller's avatar
      crypto: doc - change header file locations · 05767229
      Stephan Mueller authored
      Due to the recent update of the kernel crypto API header files,
      locations of function definitions and their documentation have changed.
      Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      05767229
  2. 18 May, 2015 8 commits
  3. 15 May, 2015 4 commits
  4. 13 May, 2015 23 commits