crypto: pcrypt - Use crypto_grab_aead
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 May 2015 07:10:58 +0000 (15:10 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2015 03:25:49 +0000 (11:25 +0800)
commit66d948e732f665c905678d810833d4f0a5071537
tree58132f17859579d36391f843951f8290d11318ad
parent9b8c456e081e7eca856ad9b2a92980a68887f533
crypto: pcrypt - Use crypto_grab_aead

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: 5d1d65f8bea6 ("crypto: aead - Convert top level interface to new style")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/pcrypt.c