• Tadeusz Struk's avatar
    crypto: af_alg - add async support to algif_aead · 83094e5e
    Tadeusz Struk authored
    Following the async change for algif_skcipher
    this patch adds similar async read to algif_aead.
    
    changes in v3:
    - add call to aead_reset_ctx directly from aead_put_sgl instead of calling
      them separatelly one after the other
    - remove wait from aead_sock_destruct function as it is not needed
      when sock_hold is used
    
    changes in v2:
    - change internal data structures from fixed size arrays, limited to
      RSGL_MAX_ENTRIES, to linked list model with no artificial limitation.
    - use sock_kmalloc instead of kmalloc for memory allocation
    - use sock_hold instead of separate atomic ctr to wait for outstanding
      request
    Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    83094e5e
algif_aead.c 18.8 KB